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


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

Re: zoom in 3d plots for netbooks/laptops

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: zoom in 3d plots for netbooks/laptops
Followup-To comp.graphics.apps.gnuplot
Date 2012-09-17 19:49 -0700
Organization gnuplot development team
Message-ID <k38ngm$13c$1@dont-email.me> (permalink)
References (2 earlier) <2f1a409f-e22a-46af-a839-fa6103a870d0@googlegroups.com> <b9584cbf-e621-4242-a12b-8c152684b128@googlegroups.com> <78f05439-ce1a-459a-86b9-7f973987cd8e@googlegroups.com> <k37k3p$c21$1@dont-email.me> <0e9f7a0a-9bd4-4b4f-a70f-83a01035159f@googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


Anthony Falzone wrote:

> in 3d i do use the view equal xyz and that works to keep the propeller
> blade geometry looking correct.  however, as i mentioned i can't seem
> to zoom and pan the way i need to view the model good, due to its long
> aspect ratio.

Let's go back to the top.
You ask about panning in 3D.  There is no built-in hotkey or mouse action
for this, but you can define it yourself as follows.

Set up the hot keys:

  delx = 0
  dely = 0
  delz = 0
  bind x "delx = delx+1; replot;"
  bind y "dely = dely+1; replot;"
  bind z "delz = delz+1; replot;"
  bind X "delx = delx-1; replot;"
  bind Y "dely = dely-1; replot;"
  bind Z "delz = delz-1; replot;"

Now plot your data set through the defined offsets.
The gnuplot demo set doesn't include a sample propellor blade,
but it does have a whale.  Let's use that.

  set border -1
  set xr [-10:10]; set yr [-5:5]; set zr [-2:2]
  splot 'whale.dat' using ($1+delx):($2+dely):($3+delz)

Your screen should now contain a box with a whale in it.
The hotkeys x/X y/Y z/Z will displace the whale within the fixed box.

You could similarly add a scale factor hooked up to another pair
of hotkeys, applied before or after the offset according to taste.

	happy whale navigation,

		Ethan

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


Thread

zoom in 3d plots for netbooks/laptops propdesign71@gmail.com - 2012-09-14 19:19 -0700
  Re: zoom in 3d plots for netbooks/laptops sfeam <sfeam@users.sourceforge.net> - 2012-09-14 22:32 -0700
    Re: zoom in 3d plots for netbooks/laptops Anthony Falzone <propdesign71@gmail.com> - 2012-09-15 07:43 -0700
      Re: zoom in 3d plots for netbooks/laptops Anthony Falzone <propdesign71@gmail.com> - 2012-09-15 08:04 -0700
        Re: zoom in 3d plots for netbooks/laptops Anthony Falzone <propdesign71@gmail.com> - 2012-09-17 07:30 -0700
          Re: zoom in 3d plots for netbooks/laptops sfeam <sfeam@users.sourceforge.net> - 2012-09-17 09:45 -0700
            Re: zoom in 3d plots for netbooks/laptops Anthony Falzone <propdesign71@gmail.com> - 2012-09-17 14:59 -0700
              Re: zoom in 3d plots for netbooks/laptops Anthony Falzone <propdesign71@gmail.com> - 2012-09-17 18:34 -0700
              Re: zoom in 3d plots for netbooks/laptops Anthony Falzone <propdesign71@gmail.com> - 2012-09-17 18:45 -0700
              Re: zoom in 3d plots for netbooks/laptops sfeam <sfeam@users.sourceforge.net> - 2012-09-17 19:49 -0700
  Re: zoom in 3d plots for netbooks/laptops Anthony Falzone <propdesign71@gmail.com> - 2012-09-17 21:04 -0700

csiph-web