How to change the font size of the second y axis of a MATLAB subplot fig file without the original data?

I was given MATLAB figure files with four subplots. The last subplot has two y axes, and I need to change the font size of the second y axis. I do not have the original data, only the figure files. How do I do this?


First let's create a figure similar to what you described, and save it to a FIG file:

for i=1:3
subplot(224), plotyy(1:10, rand(10,1), 1:10, randn(10,1))

hgsave myfigure.fig

Now we load the figure from file, and look for the second axis of PLOTYY. Once we have its handle, we can change any property we want.

hFig = hgload('myfigure.fig');
hAx = findobj(hFig, 'type','axes', '-and', 'YAxisLocation','right');
set(hAx, 'FontSize',16, 'XTick',[])

Just keep in mind that the way PLOTYY works is by creating two superimposed axes, each with its own x/y-labels. That's why I suppress the x-labels for the second when I change the font size, to avoid seeing two sets of labels on top of each other (each in a different font size).

Need Your Help

(jQuery + Mobile) Target data in a div to write to variable

jquery jquery-mobile

Is it possible to find particular data inside an element on a click, and then write that data to a variable)?

How to use SharpSVN in ASP.NET? authentication sharpsvn

Trying to use use SharpSVN in an ASP.NET app. So far, it's been nothing but trouble. First, I kept getting permission errors on "lock" files (that don't exist), even though NETWORK SERVICE has full