How to customise the zlabel?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Tony Castillo
il 3 Ago 2022
Commentato: Tony Castillo
il 3 Ago 2022
Dear all,
I have this figure but I want to change zlabel which is currently numbers by labels, such as A, B, C, D, and E. Could you give me some insights to workaround this?
Thanks in advance
0 Commenti
Risposta accettata
Abderrahim. B
il 3 Ago 2022
hI!
Something like this :
[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
surf(X,Y,Z)
% ACHange z label
zticks ;
zticklabels(["A" , "B", "C", "D", "E"])
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!