Size of horizontal axis

1 次查看(过去 30 天)
ABCDEFG HIJKLMN
ABCDEFG HIJKLMN 2022-2-18
I have a plot where the y values are of order 10e^4 and the x values are of order 10^1.
When I plot these, the plot looks like this:
How can I increase the horizontal dimension?
Thanks in advance!

回答(1 个)

Image Analyst
Image Analyst 2022-2-18
Look at the axis options. You must be using "axis equal" and since the y values are 10 thousand times bigger than the x values, you get a tall and skinny graph. Check out and experiment with the other axis options.
  3 个评论
Image Analyst
Image Analyst 2022-2-18
Did you try
axis auto
? Or maybe
axis square
ABCDEFG HIJKLMN
ABCDEFG HIJKLMN 2022-2-18
I did not write axis in the code, I have only picked the xlim from 0 to 50.
How would you suggest I do this?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by