how to display a hggroup in plotbrowser
Mostrar comentarios más antiguos
How do I make a hggroup show up in the plotbrowser?
hg = hggroup;
hg.Annotation.LegendInformation.IconDisplayStyle='on';
hg.DisplayName='my data';
h=plot3(randn(5,5),randn(5,5),randn(5,5),'Parent',hg);
plotbrowser('show')
The code above does not work. I'd like to have a single entry in the plotbrowser for my datapoints.
BTW:
legend('show')
shows a single legend entry as intended.
3 comentarios
Walter Roberson
el 21 de Sept. de 2015
If I understand correctly, you would like to have the right hand side, where the major objects are listed, indicate the hggroup as well as the axes? I agree, there does not seem to be a way to do that.
----
For my own reference, the below is the HG1 equivalent of your setup.
hg = hggroup;
t = get(hg,'Annotation');
t2 = t.legendInformation;
set(t2,'IconDisplayStyle','on')
set(hg,'DisplayName','my data')
hold on
h = plot3(randn(5,5),randn(5,5),randn(5,5),'Parent',hg);
Markus Leuthold
el 21 de Sept. de 2015
Markus Leuthold
el 6 de Jun. de 2023
Respuestas (0)
Categorías
Más información sobre Lighting, Transparency, and Shading en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!