y axis value representation on figure

2 visualizaciones (últimos 30 días)
Askic V
Askic V el 6 de Mayo de 2022
Comentada: Voss el 9 de Mayo de 2022
Hello,
is there any way to force Matlab to use 35000 instead of 3.5 x 10^4 on y axis usig plot command?
My plot command creates figure that has x10^N on y axis just like shown in the attached picture.

Respuesta aceptada

Voss
Voss el 6 de Mayo de 2022
Editada: Voss el 7 de Mayo de 2022
yyaxis left
plot(0:1000:50000)
yyaxis right
plot(400000000:-10000000:0)
set(get(gca(),'YAxis'),'Exponent',0,'TickLabelFormat','%.0f')
  4 comentarios
Askic V
Askic V el 8 de Mayo de 2022
Thank you very much!. It's very helpful.
Voss
Voss el 9 de Mayo de 2022
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by