Scaling of one axis only in 2D plot

5 visualizaciones (últimos 30 días)
klb
klb el 6 de Ag. de 2020
Editada: klb el 7 de Ag. de 2020
hello eveyone,
I have the display on left. I want to get the diplay on the right (currently stretched using MS Word). Height of y-axis to stay same. How can I do it in MATLAB?
Thanks for your time in advance.

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 6 de Ag. de 2020
Set the position property. See this post.
  3 comentarios
Cris LaPierre
Cris LaPierre el 7 de Ag. de 2020
To confirm, first try this
d= rand(100,1);
plot(d)
Then try this
d= rand(100,1);
plot(d)
x0=10;
y0=10;
width=600;
height=200
set(gcf,'position',[x0,y0,width,height])
klb
klb el 7 de Ag. de 2020
Editada: klb el 7 de Ag. de 2020
This works. Thanks Cris!

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