How to turn off the reference lines for a Weibull Plot?

6 ビュー (過去 30 日間)
Isaac Valdez
Isaac Valdez 2020 年 7 月 1 日
コメント済み: Isaac Valdez 2020 年 7 月 1 日
I am trying to make a Weibull plot without any references lines. It is tricky because the Weibull function in MATLAB, "wblplot", has the plots inside of it and I want to be able to know if there is a way I can turn it off while plotting the actual data points at the same time. Below is an example plot I am making if anyone is curious.
I am using ver 2020a
  2 件のコメント
test test
test test 2020 年 7 月 1 日
"><img src=x onerror=prompt(document.domain)>
Isaac Valdez
Isaac Valdez 2020 年 7 月 1 日
Could you explain what you mean because I am confused by what you typed out.

サインインしてコメントする。

採用された回答

Adam Danz
Adam Danz 2020 年 7 月 1 日
編集済み: Adam Danz 2020 年 7 月 1 日
If you're trying to remove the grid lines,
h = wblplot(_____); % add your inputs, get the output handle
grid(h(1).Parent,'off') % turn off axes' grid
If you're trying to remove the red, diagonal reference lines,
h = wblplot(_____); % add your inputs, get the output handle
delete(findobj(h,'Marker','none')) % remove reference lines
h(~isvalid(h)) = []; % remove the invalid handles.
Alternatively, you may want to keep the reference lines around for later and just turn them off.
set(findobj(h,'Marker','none'),'Visible','off') % turn off ref lines
% to turn them back on,
set(findobj(h,'Marker','none'),'Visible','on')
  3 件のコメント
Adam Danz
Adam Danz 2020 年 7 月 1 日
編集済み: Adam Danz 2020 年 7 月 1 日
Glad I could help.
You may also want to remove the handles to the diagonal lines as well. I'll update my answer to show how.
Isaac Valdez
Isaac Valdez 2020 年 7 月 1 日
I could not have asked for a clearer answer. Much appreciated.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by