How to change NUMBER size with plotyy
Ältere Kommentare anzeigen
Well hello! I need to change size, and make bold the number that runs along the Yaxis while using plotyy. Here is a representative example:
if true
dom=(1:10);
dummy=sin(dom)*(9/5)-32;
[hax,h(1),h(2)]=plotyy(dom,sin(dom),dom,dummy);
set(gca, 'FontSize', 24)
set(hax,{'ycolor'},{'k';'k'})
set(hax(2),'Ylim',get(hax(1),'Ylim')*(9/5)-32);
set(hax(1),'box','off','LineWidth',2);
set(hax(2),'box','off','LineWidth',2,'fontsize',10);
set(h,'color','r','LineWidth',2)
end
As you can see, the basic plot with dual axis is done. From then on I can get everithing done, labels, titles, legends, boxing, latex interpreter, etc... BUT I can't change the number (-1, -0.5, 0) size not make it 'bold'
I've tried everything combining
if true
set(gca, 'FontSize', 24)
set(hax, 'FontSize', 24)
set(hax(1), 'FontSize', 24)
end
Any help? Plzzz THX in advance.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Two y-axis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

