Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ingo Thies Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Isometric view is distorted Date: Tue, 21 Feb 2012 21:44:22 +0100 Lines: 43 Message-ID: <9qie17F1sfU1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 2hrE36yJ8YvGaTbquvLPOgvhp5IF/85Rlc4nLHx5Finw7RvNs8 Cancel-Lock: sha1:boa3vevbFUV2Sb7yQZPhyibDcNk= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:951 Am 2012-02-21 19:21, schrieb Yrogirg: > How do I make 3D view look as it should be? Now when looking from the > top the square is not a square, but rather a rectangular or diamond > (and anything between). See the screenshots. My standard header for isometric splots includes the commands "set xyplane 0" and "set view equal xyz". Here is a sample script which might be what you are looking for: set term x11 size 800,800 # set a square canvas ## some variables kzoom=1.2 phi=30. theta=60. ## Ranges example (10 ist the default range for x,y here): set xrange [-10:10] set yrange [-10:10] set zrange [-10:10] ## the relevant gnuplot commands set xyplane 0 # removes the offset of the xy plane set view equal xyz # force equal units to all three axes set view theta,phi,kzoom set iso 100, 100 splot sin(x)*cos(y) with pm3d The variable kzoom just sets a convenient initial zoom factor for a screen-filling plot, and phi,theta are the angles which are dynamically varied with the mouse. But in most cases, you can leave it at 1. There might be some fine-tuning needed for the placement of the legend(s), or just unset them by "unset key" and/or "unset colorbox". This works for gnuplot 4.4 patchlevel 4 (my stable version), but should with yours as well. HTH, Ingo