help-octave
[Top][All Lists]
Advanced

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

Re: axis distortion in 3D plot


From: Robert T. Short
Subject: Re: axis distortion in 3D plot
Date: Thu, 22 Aug 2013 12:52:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 08/20/2013 05:25 PM, Robert Gragg wrote:
*** ENVIRONMENT ***

OS X Version 10.8.4

GNU Octave, version 3.2.4
Octave was configured for "i386-apple-darwin12.4.0".

G N U P L O T
Version 4.6 patchlevel 3    last modified 2013-04-12 
Build System: Darwin x86_64

*** OCTAVE SCRIPT ***

figure(1)
set(gcf,'Color',[1,1,1]);
[x,y,z] = sphere(40);
h = surf(x,y,z);
set(h,'facecolor','none','edgecolor',0.6*[1,1,1], ...
      'linestyle',':');

*** PROBLEM ***

Judged by the axis limits, the shape that this script plots on the monitor is a unit sphere.  But it looks more like an oblate spheroid [see attached PDF].  I thought the following line might fix this, but it had no effect.  

set (gca, "PlotBoxAspectRatioMode", "manual", ...
          "PlotBoxAspectRatio", [1, 1, 1]);
 
In the work I'm trying to do, it's important to avoid this kind of distortion.  
I used to be able to do it in Matlab but I don't see the answer in Octave.  




_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
Your version of octave is pretty old, but I am reasonably sure that this is a gnuplot bug.  Even new versions of gnuplot don't scale properly unless used with old 4/3 aspect ratio monitors.



reply via email to

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