Borrar filtros
Borrar filtros

Plotting different data

1 visualización (últimos 30 días)
John
John el 3 de Oct. de 2011
So I am trying to plot about 150 different things on a matlab figure window and I was wondering if there was any possible way for each of the lines plotted to be different from one another. I would normally use Hold All however this only works for the first 7 plots until it cycles from the beginning again. Can anyone help me with this issue? Thanks in advance

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Oct. de 2011
Well, you could look at the axes ColorOrder property, but you are going to have a very difficult time distinguishing all those.
If you are plotting a large number of different traces, I recommend using the MATLAB File Exchange contribution "plt", which makes it easy to supply lists of colors and styles and markers and will automatically use each combination.
plt() handles up to 99 traces per plot at the same time: more if you turn off the generation of the legend.
There is another contribution to help pick out the maximally perceptually different colors: see http://www.mathworks.com/matlabcentral/fileexchange/29702
  1 comentario
John
John el 5 de Oct. de 2011
Thanks for the advice, the latter function worked great.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by