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


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

Re: zoom in 3d plots for netbooks/laptops

Newsgroups comp.graphics.apps.gnuplot
Date 2012-09-17 18:34 -0700
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>
Message-ID <27b66554-4249-41fa-8d0c-552b61723fff@googlegroups.com> (permalink)
Subject Re: zoom in 3d plots for netbooks/laptops
From Anthony Falzone <propdesign71@gmail.com>

Show all headers | View raw


On Monday, September 17, 2012 4:59:37 PM UTC-5, Anthony Falzone wrote:
> On Monday, September 17, 2012 11:45:46 AM UTC-5, sfeam wrote:
> 
> > Anthony Falzone wrote:
> 
> > 
> 
> > 
> 
> > 
> 
> > > one thing i found
> 
> > 
> 
> > > in a previous forum topic would be really nice to implement as well.  that
> 
> > 
> 
> > > being xrange=yrange.  so that 2d plots are scaled properly when you don't
> 
> > 
> 
> > > already know the scales involved.  that or being able to do stuff like set
> 
> > 
> 
> > > xrange [ymin:ymax]. same effect.
> 
> > 
> 
> > 
> 
> > 
> 
> > 2D command:
> 
> > 
> 
> > 	set size ratio 1.0
> 
> > 
> 
> >   or      set size square
> 
> > 
> 
> > 
> 
> > 
> 
> > 3D command:
> 
> > 
> 
> > 	set view equal xy
> 
> > 
> 
> >   or	set view equal xyz
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > However, these commands work only if the output device correctly reports
> 
> > 
> 
> > the aspect ratio of its display area.   Not all terminal types do this.
> 
> > 
> 
> > For instance, the above commands will work correctly in the qt or wxt
> 
> > 
> 
> > interactive terminals, but not in x11.
> 
> 
> 
> thanks i was not aware of the set size square command.  that is helpful in some cases, however, it isn't helping my issue.  i have an airfoil shape and the view is distorted unless the xrange and yrange are the same.  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.

i made a work around.  i wrote the *.plt entirely in Fortran 77. i just added some code to the one i was using the generate the *.dat file.  this allowed me to scale the axes as needed.  the reason i made this plot was to get around the 3d zoom problem.  so i can now view all the geometry. some in 3d and the rest in 2d. here is some of the code in case anyone is interested.

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C
C     CREATING GNUPLOT *.PLT FILE FOR AIRFOIL CURVES
C
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C
      ZMIN = 1.10D0 * 1000.0D0 * ( 0.250D0 *
     & CHORD(1) - ( ( CHORD(1) / 100.0D0 ) * AFXTAB(25) ) )
C
      WRITE (20,*) 'reset'
C
      WRITE (20,*) 'set grid'
C
      WRITE (20,*) 'unset key'
C
      WRITE (20,*) 'set title "Airfoil Curves" font "*,14"'
C
      WRITE (20,*) 'set xlabel "Y-Axis [mm]"'
C
      WRITE (20,*) 'set ylabel "Z-Axis [mm]"'
C
      WRITE (20,*) 'set xrange [', DINT(ZMIN), ':', DINT(-ZMIN), ']'
C
      WRITE (20,*) 'set yrange [', DINT(ZMIN), ':', DINT(-ZMIN), ']'
C
      WRITE (20,*) 'set size square'
C
      WRITE (20,*) 'unset pm3d'
C
      WRITE (20,*) 'set lt 1 lw 1.0 pt 7 ps .8 lc rgb "black"'
C
      WRITE (20,*) 'set lt 2 lw 1.0 pt 7 ps .8 lc rgb "black"'
C
      FN1 = '''AIRFOIL_CURVE_A.XYZ'
C
      FN2 = '''AIRFOIL_CURVE_B.XYZ'
C
      WRITE (20,*) 'plot ', FN1, ''' using 2:3 smooth bezier with',
     & ' lines,\'
C
      WRITE (20,*) '     ', FN2, ''' using 2:3 smooth bezier with',
     & ' lines'
C
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

if you could still consider my requests, they would be most helpful.  this is just a work around given the current state of gnuplot (version 4.6.0).

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