How can I manipulate the properties of a polar graph?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am ploting a polar graph and would like to change various properties. Mainly remove and/or the polar axis labels.
I manage to get the gca handles, but I am not able to find which one correspond to these properties.
Thank you
0 Kommentare
Akzeptierte Antwort
Jan
am 4 Mär. 2011
The labels for the radius and angle are TEXT objects with the 'HandleVisibility' set to 'off'. You can get their handles by:
AllText = findobj(allchild(gca), 'flat', 'type', 'text');
It might be easier to create a local copy of "polar.m" using a new name and disable the creation of the labels manually. Or you can add the tag 'radius_label' to the radius labels, such that you can let the above FINDOBJ command find them.
0 Kommentare
Weitere Antworten (2)
Jonas
am 4 Mär. 2011
1 Kommentar
Jan
am 4 Mär. 2011
You can use "set(0, 'ShowHiddenHandles', 'on')" to enable the visibility of hidden handles. Then "children(gcf)", "children(gca)" and the same for the replied child objects reveal the internal storage: There is one invisible AXES object, while the visible radius and angle lines are LINE objects, the white background is a PATCH and the labels are created by TEXT. All visible objects are children of the single AXES object.
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!