Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Several Line Appearing as on check in plot browser

2 ビュー (過去 30 日間)
Joseph Caruso
Joseph Caruso 2012 年 5 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to show the relationship between two point in a graph. I can connect them using line or plot, however, each line line segement appears in the plot browser as a check box. I want the interconnecting lines to appear as a single check box so I can turn them off and on easily.

回答 (1 件)

Stephen
Stephen 2012 年 5 月 24 日
mmm if you have a list of the points try making a single vector separated by Nan, which won't plot.
x=[p1;p2;NaN;p3;p4;NAN;p5....]; y=...same thing; h=plot(x,y)
set(h,'visible','off')

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by