Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1375 > unrolled thread
| Started by | propdesign71@gmail.com |
|---|---|
| First post | 2012-09-14 19:19 -0700 |
| Last post | 2012-09-17 21:04 -0700 |
| Articles | 11 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
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
| From | propdesign71@gmail.com |
|---|---|
| Date | 2012-09-14 19:19 -0700 |
| Subject | zoom in 3d plots for netbooks/laptops |
| Message-ID | <30feb1fb-6bca-4ed5-8759-d5393f810cdb@googlegroups.com> |
hi, would it be possible to add a keyboard command for zooming in and out. say + or - keys. i'm on a netbook and having to switch my right mouse button over to middle mouse button is rather awkward, as I have to switch it back for everything but gnuplot. the left mouse button rotates on 3d plots. for 2d plots i can zoom with the right mouse button on default settings. this just seems to be related to 3d plots, as a netbook has no middle mouse button. i'm a novice with gnuplot, so if i'm not making sense, let me know and i can try to explain better. awesome program btw. i've had a lot of success using it with a program i wrote called PROP_DESIGN. i've only had this one small issue. thanks, anthony
[toc] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2012-09-14 22:32 -0700 |
| Message-ID | <k313tf$2lh$1@dont-email.me> |
| In reply to | #1375 |
propdesign71@gmail.com wrote: > hi, > > would it be possible to add a keyboard command for zooming in and out. > say + or - keys. There is a patch on the SourceForge code tracker that adds additional zoom/pan features, including hot keys + and -. If you are building gnuplot from source, you can apply the patch and try it out. In any event you could add a note on the tracker to say you'd like to see this feature added. https://sourceforge.net/tracker/?func=detail&aid=3537423&group_id=2055&atid=302055 > i'm on a netbook and having to switch my right > mouse button over to middle mouse button is rather awkward, as I have > to switch it back for everything but gnuplot. the left mouse button > rotates on 3d plots. for 2d plots i can zoom with the right mouse > button on default settings. this just seems to be related to 3d > plots, as a netbook has no middle mouse button. i'm a novice with > gnuplot, so if i'm not making sense, let me know and i can try to > explain better. > > awesome program btw. i've had a lot of success using it with a > program i wrote called PROP_DESIGN. i've only had this one small > issue. > > thanks, > > anthony
[toc] | [prev] | [next] | [standalone]
| From | Anthony Falzone <propdesign71@gmail.com> |
|---|---|
| Date | 2012-09-15 07:43 -0700 |
| Message-ID | <2f1a409f-e22a-46af-a839-fa6103a870d0@googlegroups.com> |
| In reply to | #1376 |
On Saturday, September 15, 2012 12:32:32 AM UTC-5, sfeam wrote: > > > hi, > > > > > > would it be possible to add a keyboard command for zooming in and out. > > > say + or - keys. > > > > There is a patch on the SourceForge code tracker that adds additional > > zoom/pan features, including hot keys + and -. If you are building > > gnuplot from source, you can apply the patch and try it out. > > In any event you could add a note on the tracker to say you'd like to > > see this feature added. > > > > https://sourceforge.net/tracker/?func=detail&aid=3537423&group_id=2055&atid=302055 > > > > > > > i'm on a netbook and having to switch my right > > > mouse button over to middle mouse button is rather awkward, as I have > > > to switch it back for everything but gnuplot. the left mouse button > > > rotates on 3d plots. for 2d plots i can zoom with the right mouse > > > button on default settings. this just seems to be related to 3d > > > plots, as a netbook has no middle mouse button. i'm a novice with > > > gnuplot, so if i'm not making sense, let me know and i can try to > > > explain better. > > > > > > awesome program btw. i've had a lot of success using it with a > > > program i wrote called PROP_DESIGN. i've only had this one small > > > issue. > > > > > > thanks, > > > > > > anthony hi, thanks for the reply. i am not building from scratch unfortunately. i would add a comment to the tracker, but there doesn't seem to be a way to do that if you're not a member of sf. in any event, i would love to see such a feature added. anthony
[toc] | [prev] | [next] | [standalone]
| From | Anthony Falzone <propdesign71@gmail.com> |
|---|---|
| Date | 2012-09-15 08:04 -0700 |
| Message-ID | <b9584cbf-e621-4242-a12b-8c152684b128@googlegroups.com> |
| In reply to | #1379 |
On Saturday, September 15, 2012 9:43:26 AM UTC-5, Anthony Falzone wrote: > On Saturday, September 15, 2012 12:32:32 AM UTC-5, sfeam wrote: > > > > > > > hi, > > > > > > > > > > > > > > would it be possible to add a keyboard command for zooming in and out. > > > > > > > say + or - keys. > > > > > > > > > > > > There is a patch on the SourceForge code tracker that adds additional > > > > > > zoom/pan features, including hot keys + and -. If you are building > > > > > > gnuplot from source, you can apply the patch and try it out. > > > > > > In any event you could add a note on the tracker to say you'd like to > > > > > > see this feature added. > > > > > > > > > > > > https://sourceforge.net/tracker/?func=detail&aid=3537423&group_id=2055&atid=302055 > > > > > > > > > > > > > > > > > > > i'm on a netbook and having to switch my right > > > > > > > mouse button over to middle mouse button is rather awkward, as I have > > > > > > > to switch it back for everything but gnuplot. the left mouse button > > > > > > > rotates on 3d plots. for 2d plots i can zoom with the right mouse > > > > > > > button on default settings. this just seems to be related to 3d > > > > > > > plots, as a netbook has no middle mouse button. i'm a novice with > > > > > > > gnuplot, so if i'm not making sense, let me know and i can try to > > > > > > > explain better. > > > > > > > > > > > > > > awesome program btw. i've had a lot of success using it with a > > > > > > > program i wrote called PROP_DESIGN. i've only had this one small > > > > > > > issue. > > > > > > > > > > > > > > thanks, > > > > > > > > > > > > > > anthony > > > > hi, > > > > thanks for the reply. i am not building from scratch unfortunately. i would add a comment to the tracker, but there doesn't seem to be a way to do that if you're not a member of sf. in any event, i would love to see such a feature added. > > > > anthony just had a thought, i don't know if it would be any easier to use the right mouse button for zoom on the 3d plots. since it is already used that way for 2d plots, that might make some sense. that way the middle mouse button just wouldn't be used for anything and there would be some consistency. since a lot of people don't have a middle mouse button, this could be better than introducing keyboard commands. however, i do like keyboard commands too, lol. anyway, just a thought. thanks
[toc] | [prev] | [next] | [standalone]
| From | Anthony Falzone <propdesign71@gmail.com> |
|---|---|
| Date | 2012-09-17 07:30 -0700 |
| Message-ID | <78f05439-ce1a-459a-86b9-7f973987cd8e@googlegroups.com> |
| In reply to | #1380 |
On Saturday, September 15, 2012 10:04:34 AM UTC-5, Anthony Falzone wrote: > On Saturday, September 15, 2012 9:43:26 AM UTC-5, Anthony Falzone wrote: > > > On Saturday, September 15, 2012 12:32:32 AM UTC-5, sfeam wrote: > > > > > > > > > > > > > > > hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > would it be possible to add a keyboard command for zooming in and out. > > > > > > > > > > > > > > > say + or - keys. > > > > > > > > > > > > > > > > > > > > > > > > > > > > There is a patch on the SourceForge code tracker that adds additional > > > > > > > > > > > > > > zoom/pan features, including hot keys + and -. If you are building > > > > > > > > > > > > > > gnuplot from source, you can apply the patch and try it out. > > > > > > > > > > > > > > In any event you could add a note on the tracker to say you'd like to > > > > > > > > > > > > > > see this feature added. > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://sourceforge.net/tracker/?func=detail&aid=3537423&group_id=2055&atid=302055 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > i'm on a netbook and having to switch my right > > > > > > > > > > > > > > > mouse button over to middle mouse button is rather awkward, as I have > > > > > > > > > > > > > > > to switch it back for everything but gnuplot. the left mouse button > > > > > > > > > > > > > > > rotates on 3d plots. for 2d plots i can zoom with the right mouse > > > > > > > > > > > > > > > button on default settings. this just seems to be related to 3d > > > > > > > > > > > > > > > plots, as a netbook has no middle mouse button. i'm a novice with > > > > > > > > > > > > > > > gnuplot, so if i'm not making sense, let me know and i can try to > > > > > > > > > > > > > > > explain better. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > awesome program btw. i've had a lot of success using it with a > > > > > > > > > > > > > > > program i wrote called PROP_DESIGN. i've only had this one small > > > > > > > > > > > > > > > issue. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > thanks, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > anthony > > > > > > > > > > > > hi, > > > > > > > > > > > > thanks for the reply. i am not building from scratch unfortunately. i would add a comment to the tracker, but there doesn't seem to be a way to do that if you're not a member of sf. in any event, i would love to see such a feature added. > > > > > > > > > > > > anthony > > > > just had a thought, i don't know if it would be any easier to use the right mouse button for zoom on the 3d plots. since it is already used that way for 2d plots, that might make some sense. that way the middle mouse button just wouldn't be used for anything and there would be some consistency. since a lot of people don't have a middle mouse button, this could be better than introducing keyboard commands. however, i do like keyboard commands too, lol. anyway, just a thought. > > > > thanks i found a fix. i enabled pinch zoom on my trackpad. this allows me to zoom. but then i'm having a multitude of other issues. i guess it just boils down to how gnuplot terminals work. i need something more like a traditional cad program where you can pan, zoom, and rotate in 3d on the fly without having to predefine x,y,z scales etc... I have a propeller blade which is very long compared to its height. so you can't see part of the model unless you can zoom in really really far. you have to be able to pan as well, which doesn't seem possible. when i try to zoom i often get errors regarding scaling. so i guess this just isn't going to work out like i need. in any event my first couple of suggestions could still be useful to some. that being keyboard zoom command and possibly syncing the mouse buttons. so that 2d and 3d zoom work off the right mouse button and 3d rotate continues to work off the left mouse button. none of this will help me now, but it could still help others out. 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.
[toc] | [prev] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2012-09-17 09:45 -0700 |
| Message-ID | <k37k3p$c21$1@dont-email.me> |
| In reply to | #1381 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Anthony Falzone <propdesign71@gmail.com> |
|---|---|
| Date | 2012-09-17 14:59 -0700 |
| Message-ID | <0e9f7a0a-9bd4-4b4f-a70f-83a01035159f@googlegroups.com> |
| In reply to | #1382 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Anthony Falzone <propdesign71@gmail.com> |
|---|---|
| Date | 2012-09-17 18:34 -0700 |
| Message-ID | <27b66554-4249-41fa-8d0c-552b61723fff@googlegroups.com> |
| In reply to | #1383 |
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).
[toc] | [prev] | [next] | [standalone]
| From | Anthony Falzone <propdesign71@gmail.com> |
|---|---|
| Date | 2012-09-17 18:45 -0700 |
| Message-ID | <9a4e6d79-7cb0-4107-9b04-7fcaee1bfa8e@googlegroups.com> |
| In reply to | #1383 |
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.
[toc] | [prev] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2012-09-17 19:49 -0700 |
| Message-ID | <k38ngm$13c$1@dont-email.me> |
| In reply to | #1383 |
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
[toc] | [prev] | [next] | [standalone]
| From | Anthony Falzone <propdesign71@gmail.com> |
|---|---|
| Date | 2012-09-17 21:04 -0700 |
| Message-ID | <b5b0527a-0935-4cab-8e18-2d78d5959ae6@googlegroups.com> |
| In reply to | #1375 |
On Friday, September 14, 2012 9:19:19 PM UTC-5, Anthony Falzone wrote: > hi, > > > > would it be possible to add a keyboard command for zooming in and out. say + or - keys. i'm on a netbook and having to switch my right mouse button over to middle mouse button is rather awkward, as I have to switch it back for everything but gnuplot. the left mouse button rotates on 3d plots. for 2d plots i can zoom with the right mouse button on default settings. this just seems to be related to 3d plots, as a netbook has no middle mouse button. i'm a novice with gnuplot, so if i'm not making sense, let me know and i can try to explain better. > > > > awesome program btw. i've had a lot of success using it with a program i wrote called PROP_DESIGN. i've only had this one small issue. > > > > thanks, > > > > anthony hi,that's awesome. i did what you said with the whale demo and it works. i can pan the whale. sorry to be dumb, but how do you do this for zoom as well. i'm not that familiar with gnuplot. you've shown me a lot that i didn't know about gnuplot already.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web