How to plot two equal parts of axis y with unequal distances?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
hello.
I have this plot:
I want it to be like this:
thanks a lot
0 Kommentare
Antworten (1)
Star Strider
am 17 Sep. 2021
Set the tick locations (and displayed values if different) to specific values, and specify the tick format —
x = zeros(1,5);
y = 1:6:30;
figure
scatter(x, y, 35, y, 's', 'filled')
yticks([0 4 15 30]) % Set 'Y-Tick' Values (R2016b+)
ytickformat = '\bf %d'; % Set Bold Font Weight & Integers (R2016b+)
xlim([0 0.1])
.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations 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!