Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #953

Re: Isometric view is distorted

From Yrogirg <yrogirg@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Isometric view is distorted
Date 2012-02-21 20:15 -0800
Organization http://groups.google.com
Message-ID <cc994437-21b2-4db5-9c35-c66aa35ecf63@m7g2000vbw.googlegroups.com> (permalink)
References <b1098bd8-34fc-453f-9aae-f281545c316f@t30g2000vbx.googlegroups.com> <9qie17F1sfU1@mid.individual.net>

Show all headers | View raw


On Feb 22, 12:44 am, Ingo Thies <ingo.th...@gmx.de> 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=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

Thank you.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Isometric view is distorted Yrogirg <yrogirg@gmail.com> - 2012-02-21 10:21 -0800
  Re: Isometric view is distorted Ingo Thies <ingo.thies@gmx.de> - 2012-02-21 21:44 +0100
    Re: Isometric view is distorted Yrogirg <yrogirg@gmail.com> - 2012-02-21 20:15 -0800

csiph-web