help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dataaspectratio


From: John W. Eaton
Subject: dataaspectratio
Date: Mon, 10 Aug 2009 12:17:47 -0400

On 10-Aug-2009, J Schreiber wrote:

| I would like to get plots where y and x axis have the same scale.
| 
| this works in matlab, unfortunately not in octave, both win and linux.
| 
| The ratio depends on the size of the figure window.
| 
| the following plot does fill the figure window, after the set command 
| the plot is centered in to the middle vertically,
| 
| (although the get  says, that it had 1 1 1 before)
| 
| the same when figurewindow is higher than wide.
| 
| 
| 
| 
| octave:14> plot(rand(3))
| octave:15> get(gca,'dataaspectratio')
| ans =
| 
|     1   1   1
| 
| octave:16> set(gca,'dataaspectratio',[1 1 1])
| octave:17> ver
| ----------------------------------------------------------------------
| GNU Octave Version 3.0.0

I'd recommend upgrading to 3.2.2.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]