Displaying Graphic Object Handles

2 vues (au cours des 30 derniers jours)
Konstantinos Tsitsilonis
Konstantinos Tsitsilonis le 15 Juil 2017
Hi all,
I know this might be a simple question, but every time I come across this one, it seems to puzzle me.
Say I have a figure with anything it it. It can be:
plot
plot with a fit => plot(fitfunction,xdata,ydata)
bar graph
contour plot
scatter plot
I think you get the idea.
Now, I want to go and change many of the default formatting options of these objects. To do this I remember by-heart in some cases that for plots I will do h.LineWidth to change the weight of the line, or h.MarkerEdgeColor to change the edge colour of a scatter plot marker.
However, for more complicated cases, I am not aware of what formatting options I have, and therefore what is the name of the handle that I must call. For the following case for example:
h = plot(fitfunction,xdata,ydata) ;
get(h)
All i get is: For a call to GET of the form "get(h)" with no left hand side, h must be scalar. So I do not know what handles I have available to 'play' with.
Consequently, what is a standard approach such that you have all the handle names for each graphic object at hand displayed?
Thanks for your responses in advance,
KMT.

Réponse acceptée

Walter Roberson
Walter Roberson le 16 Juil 2017

Plus de réponses (0)

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by