How do I change the size of a graph/plot to be longer?

5 次查看(过去 30 天)
I have a plot that looks very stretched to the left and right. Is there a way to stretch the graph in the vertical direction?
Thanks!
  2 个评论
John Chilleri
John Chilleri 2017-2-6
You can always specify the axis with
axis([xmin xmax ymin ymax])
or stretch the window manually - also, is it a problem with the depiction or with the data itself?
Perhaps try:
axis equal
Hope this helps!

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2017-2-6
Try axis options like "axis equal", "axis square", etc. If those don't do it for you then set the position property of the axis, like this:
handleToAxis.Units = 'normalized'; % Or leave as pixels if you want.
handleToAxis.Position = [x, y, width, height]; % If normalized units, all values are between 0 and 1

更多回答(0 个)

类别

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by