setting the yticklabels with $10^{-2}$ appearing at the top
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
min lee
am 14 Jun. 2024
Beantwortet: Lone_wolf
am 14 Jun. 2024
I want the y axis to be labelled as

But I actually got

The problem is that the ticklabels are too wide. How can I make it appprear as I desire?
0 Kommentare
Akzeptierte Antwort
Lone_wolf
am 14 Jun. 2024
FYI
x = linspace(0,5,100);
y1 = 1e5*x;
y2 = 1e-5*x.*sin(20*x);
figure
yyaxis left
plot(x,y1)
yyaxis right
plot(x,y2)
ax = gca;
ax.YAxis(1,1).Exponent = 5;
ax.YAxis(2,1).Exponent = -5;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
