Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!m7g2000vbw.googlegroups.com!not-for-mail From: Yrogirg Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Isometric view is distorted Date: Tue, 21 Feb 2012 20:15:33 -0800 (PST) Organization: http://groups.google.com Lines: 47 Message-ID: References: <9qie17F1sfU1@mid.individual.net> NNTP-Posting-Host: 188.32.149.164 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1329885043 12962 127.0.0.1 (22 Feb 2012 04:30:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Feb 2012 04:30:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m7g2000vbw.googlegroups.com; posting-host=188.32.149.164; posting-account=HlojigoAAADU9tY4PRZBIhx6ODFDZFr9 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALENKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:953 On Feb 22, 12:44=A0am, Ingo Thies wrote: > 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=3D1.2 > phi=3D30. > theta=3D60. > > ## 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 =A0 =A0 =A0 # removes the offset of the xy plane > set view equal xyz =A0# 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 Thank you.