help-octave
[Top][All Lists]
Advanced

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

Re: No "square" plotting in 3d any more?!


From: Ben Abbott
Subject: Re: No "square" plotting in 3d any more?!
Date: Mon, 10 Dec 2012 14:24:28 -0500

On Dec 10, 2012, at 2:15 PM, address@hidden wrote:

> Dear Ben,
> 
> 
> Thanks for Your quick reply.
> On 10/12/12 14:04:33, Ben Abbott wrote:
>> As a work around please try adjusting the plot box aspect ratio manually.
>> 
>>      set (gca (), "plotboxaspectratio", [1 1 1.2])
> 
> I tried but it seems this has no effect, neither in 3.6.2 nor 3.4.3
> Any further ideas?
> 
> Again, many thanks for looking into this
> Lynx

Make sure the plot is 3D.  Try the two examples below.   Is the aspect ratio of 
both the same?

        figure (1)
        clf ()
        peaks ()
        set (gca (), "plotboxaspectratio", [1 1 1])

        figure (2)
        clf ()
        peaks ()
        set (gca (), "plotboxaspectratio", [1 1 2])

If they are the same, please try dataaspectratio instead (I recall these two 
were reversed as compared to Matlab in the past).

        figure (1)
        clf ()
        peaks ()
        set (gca (), "dataaspectratio", [1 1 1])

        figure (2)
        clf ()
        peaks ()
        set (gca (), "dataaspectratio", [1 1 2])

Ben


reply via email to

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