how to set graph size
1 view (last 30 days)
Show older comments
hello everyone, I wonder how to change a graph like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218973/image.png)
into a graph like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218974/image.png)
0 Comments
Accepted Answer
Josh
on 11 May 2019
I'd use daspect to change the aspect ratio of your axes:
% Create plot vectors
x = [0, 1, 2];
y = [1, 0, 0];
% Plot
plot(x,y);
% Change plot aspect ratio so 1 unit of x equals 2 units of y (and z)
daspect([1,2,2])
0 Comments
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!