Doug

]]>h1 = subplot(4,3,1); plot(x,y);

lim_y12 = get(h1, ‘YLim’);

text(0, lim_y1(2)-1, [' ' char(1+96) '(i)'];,…

‘HorizontalAlignment’,'left’,…

‘VerticalAlignment’,'top’,'interpreter’,'latex’,'FontSize’,myfontsize);

By all means, it worked out okay, but I’m not completely satisfied with the method. The scales from each column are varied from one and another by different order of magnitudes and so the labels would end up scattering about along the horizontal axis (mildly). Is there a way to set the position of the labelled text relative to the graph area instead of using the plot coordinates? I simply want number each graph at exactly the same place. Any helps and suggestions would be greatly appreciated.

Best wishes,

]]>Axes do not have YData, lines do. To get the Ydata, you need the handles of the children of the axes (the lines). Do you mean the YLimits of the axes?

Doug

]]>How do I get YData in one subplot? When I do get(gca,’children’), it only returns one value although there are several subplots.

when i do get(get(gca,’Children’),’ydata’); it doesn’t seem like ydata of all subplots, i don’t know how to read the return of this line.

I also have tried h(1) = subplot(….), then get(h(1),’YData’)), didn’t seem working either.

Anyway, how do I get Ydata of a subplot.

Also, if I set all subplots in a figure with buttondownfunction, what’s the best way to do this? currently i have a for loop as for i = 1:length(#of subplot)

set(…buttondownfunction….)

end. This is not a good way to do it at all, is it? what is the faster way to do this?

One more question is that is there a way to add uicontrol,like a text box, within a subplot(rather than the entire figure? If so, how should I do it. I wasn’t able to do it for individual subplot.

Thank you

]]>the subplot function is divide the current window into m*n parts. here m is the number of rows and the n is number of column. p is the position where we will plot the graph.

if there graph is already exists the blow command is delete the pane and create a new pane of graph.

“subplot(m,n,p,’replace’) ]]>

I am not sure I understand your question. Please contact support for help.

Doug

]]> I need your help in plotting a time-series data set and in the form of sub-plots.My domain size is 362 X 181 and like that there are 12 data sets.I need to plot all these 12 data sets of same dimension and animate later.

I need to make a script so that,it is operational.

I strucked from last four days to do this.

Thanking you in advance

regards

jitendra

got a simple question here, I’m making an interface for an image compression project. I needed to generate several subplots for the histogram, but here lies the problem. After generating all the subplots (which I put inside a panel, not axes) I simply can’t remove/clear/reset those subplots, which I need to do to make my ‘Clear’ pushbutton works as it is assigned to do.

a quick reply would be nice..

regards

Fikri

]]>