Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Several Line Appearing as on check in plot browser

1 visualización (últimos 30 días)
Joseph Caruso
Joseph Caruso el 24 de Mayo de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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.

Respuestas (1)

Stephen
Stephen el 24 de Mayo de 2012
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')

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by