Filter löschen
Filter löschen

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

5 Ansichten (letzte 30 Tage)
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 Kommentare
John Chilleri
John Chilleri am 6 Feb. 2017
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 am 6 Feb. 2017
the data is fine, the plot displaying it is just squished...

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 6 Feb. 2017
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

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by