skip legend entries in property editor?

1 visualización (últimos 30 días)
Martin Muehlegger
Martin Muehlegger el 4 de Mzo. de 2020
Comentada: Martin Muehlegger el 5 de Mzo. de 2020
I have a .fig file where i'd like to delete the first 8 legend entries without effecting the other ones. Figure is attached. tried it with property editor but it doesn't work. I'm running 2017b.

Respuestas (1)

Bhaskar R
Bhaskar R el 5 de Mzo. de 2020
ax = gca;
ax_data = ax.Children;
legend(ax_data(1:5), fliplr(ax.Legend.String(9:end)))
  1 comentario
Martin Muehlegger
Martin Muehlegger el 5 de Mzo. de 2020
Ouh always forget fliplr.... But how to do this in the figure property editor?

Iniciar sesión para comentar.

Categorías

Más información sobre Legend en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by