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


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

Re: zoom in 3d plots for netbooks/laptops

Received by 10.180.96.42 with SMTP id dp10mr2084824wib.2.1347932713494; Mon, 17 Sep 2012 18:45:13 -0700 (PDT)
Received by 10.52.72.16 with SMTP id z16mr1125508vdu.15.1347932713319; Mon, 17 Sep 2012 18:45:13 -0700 (PDT)
Path csiph.com!usenet.pasdenom.info!gegeweb.org!news.ecp.fr!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.85.212.216.MISMATCH!yt1no19420477wib.1!news-out.google.com!ed8ni114471314wib.0!nntp.google.com!v8no17679qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Mon, 17 Sep 2012 18:45:13 -0700 (PDT)
In-Reply-To <0e9f7a0a-9bd4-4b4f-a70f-83a01035159f@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=96.19.11.179; posting-account=kfVMwAoAAAAaWEbfk2y_2nkkflcl0oB5
NNTP-Posting-Host 96.19.11.179
References <30feb1fb-6bca-4ed5-8759-d5393f810cdb@googlegroups.com> <k313tf$2lh$1@dont-email.me> <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>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <9a4e6d79-7cb0-4107-9b04-7fcaee1bfa8e@googlegroups.com> (permalink)
Subject Re: zoom in 3d plots for netbooks/laptops
From Anthony Falzone <propdesign71@gmail.com>
Cc sfeam@users.sourceforge.net
Injection-Date Tue, 18 Sep 2012 01:45:13 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.graphics.apps.gnuplot:1385

Show key headers only | 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 figured out a work around. i added some code to an existing Fortran 77 code i had that created the *.dat file. the new code creates the *.plt file as well.  this way I can set the xrange and yrange equal to each other.  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

i made this 2d airfoil plot because i can't zoom and pan in the 3d model.  so i can at least see the airfoil in 2d and zoom in that.  you seeming can pan up and down in 2d but not side to side.  no big deal though because i can zoom in 2d.  i can see most of the model in 3d and rotate.  then see the rest in 2d.  so this is a bit odd but it works.

if you could still consider my request, i think they would be very helpful to others.  they would also prevent me from doing this sort of work around.

the full code is on my website propdesign.weebly.com.  PROP_DESIGN_XYZ is contained in the main PROP_DESIGN download.  Also if you want to see everything I am doing with gnuplot you can view *.plt files for PROP_DESIGN_ANALYSIS, PROP_DESIGN_MAPS, and PROP_DESIGN_XYZ.  As you can see gnuplot is awesome.  Just this one problem spot.

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


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