Size of horizontal axis

2 views (last 30 days)
ABCDEFG HIJKLMN
ABCDEFG HIJKLMN on 18 Feb 2022
Commented: ABCDEFG HIJKLMN on 18 Feb 2022
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!

Answers (1)

Image Analyst
Image Analyst on 18 Feb 2022
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 Comments
Image Analyst
Image Analyst on 18 Feb 2022
Did you try
axis auto
? Or maybe
axis square
ABCDEFG HIJKLMN
ABCDEFG HIJKLMN on 18 Feb 2022
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?

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!