Displaying Graphic Object Handles

2 Ansichten (letzte 30 Tage)
Konstantinos Tsitsilonis
Konstantinos Tsitsilonis am 15 Jul. 2017
Beantwortet: Walter Roberson am 16 Jul. 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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 16 Jul. 2017

Weitere Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects 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!

Translated by