plotyy fontsize specifications not applying as expected

1 view (last 30 days)
My FontSize specifications are not applying to either handles or direct calls for my plotyy (see below). They also do not change when manually entered in the property editor. Any ideas?
[AX,H1,H2] =plotyy(x,cuttemp,x,cutstrain);
set(get(AX(1),'Ylabel'),'String','Temperature','Color',[0 0 0])
set(get(AX(2),'Ylabel'),'String','Strain gauge','Color',[0 0 0])
xlabel('Sample (1000 Hz)')
title('Male responses','FontSize',24)
set(H1,'LineStyle','--','Color',[0 0 0])
set(H2,'LineStyle','-','Color',[0 0 0])
hleg1=legend('Temperature','Strain gauge');
set(hleg1,'FontSize',24)

Accepted Answer

the cyclist
the cyclist on 8 Oct 2011
I see in your code that you changed the font size of the legend and the title. When I run your code that is exactly what I get. [MATLAB 2011b on Mac.]
  1 Comment
Nicole Prause
Nicole Prause on 8 Oct 2011
Curses. I'm on 7.2.0.283 (R2006a), which should not, but may, explain it. Thanks for giving it a run!

Sign in to comment.

More Answers (0)

Categories

Find more on Two y-axis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!