Borrar filtros
Borrar filtros

Displaying Graphic Object Handles

4 visualizaciones (últimos 30 días)
Konstantinos Tsitsilonis
Konstantinos Tsitsilonis el 15 de Jul. de 2017
Respondida: Walter Roberson el 16 de Jul. de 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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de Jul. de 2017

Más respuestas (0)

Categorías

Más información sobre Graphics Object Programming 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