필터 지우기
필터 지우기

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

조회 수: 5 (최근 30일)
Bennett Torrance
Bennett Torrance 2017년 2월 6일
댓글: Bennett Torrance 2017년 2월 6일
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!
Bennett Torrance
Bennett Torrance 2017년 2월 6일
the data is fine, the plot displaying it is just squished...

댓글을 달려면 로그인하십시오.

채택된 답변

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