how to specify y axis?
Mostrar comentarios más antiguos
how to spesify left y axis as follow:
(0 500 1000)

1 comentario
Ibrahim AlZoubi
el 21 de Jun. de 2020
Respuesta aceptada
Más respuestas (1)
the cyclist
el 21 de Jun. de 2020
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])
5 comentarios
Ibrahim AlZoubi
el 21 de Jun. de 2020
the cyclist
el 21 de Jun. de 2020
Editada: the cyclist
el 21 de Jun. de 2020
Here is a simple example that shows that this syntax works:
figure
plot(1000*rand(7))
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])

Perhaps you are doing something afterward that changes it? Maybe you could post the code that creates your figure.
Ibrahim AlZoubi
el 21 de Jun. de 2020
Ibrahim AlZoubi
el 21 de Jun. de 2020
the cyclist
el 21 de Jun. de 2020
rand(7)
was just me generating some random numbers to plot, to illustrate that my code suggestion worked in that case.
Categorías
Más información sobre Graphics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
