|
From: Tatsuro M. <tma...@ya...> - 2009-07-19 22:50:08
|
Hello I have built wgnuplot with wxt on the cvs trees 2009-07-18 Ethan A Merritt <merritt@u.washington.edu> * src/wxterminal/wxt_gui.cpp src/wxterminal/wxt_gui.h: Pass through mouse wheel events from the wxt terminal, so that the new pan and zoom works for wxt as well as x11. I have confirmed that pan and zoom using work on wxt but does not work on windows terminal. Regards Tatsuro --- Ethan Merritt wrote: > On Friday 17 July 2009, Ethan Merritt wrote: > > On Friday 17 July 2009, James R. Van Zandt wrote: > > > > > > I've just checked in code to do "pan and zoom" with the mouse wheel. > > > > First thoughts: > > > > It works nicely here in x11, but doesn't do anything at all in wxt or > > in the new canvas or qt terminals. I understand that extra javascript > > would be needed for the canvas, but what is needed in order to support > > this for other interactive terminal types? > > OK. I figured out how to add a wxt handler for mouse wheel events. > > I'll punt on qt and hope that J将アr将ヤme Lodewyck will take care of it. > > What about the windows terminal - can someone confirm whether that > is recognizing pan and zoom using the same conventions as x11? > > Ethan > > > > > > > Wouldn't it be logical to apply this in 3D also? > > > > It does not immediately strike me as useful to save the settings on the > > zoom stack. Unlike a click-and-drag zoom operation, the inverse is easy > > to achieve by reversing the direction of the mouse wheel. > > > > > > > These commands work like Acroread or Gimp: > > > > > > - control-wheel-up zooms in toward the center of the plot > > > - control-wheel-down reverses the above > > > > > > - wheel-up move the viewpoint up (increases both ymin and ymax by ten > > > percent of the plot range) > > > > > > - wheel-down moves the viewpoint down > > > > > > - shift-wheel-up moves the viewpoint left (decreases both xmin and xmax > > > by ten percent of the plot range) > > > > > > - shift-wheel-down moves the viewpoint right > > > > > > > > > I implemented these just for completeness: > > > > > > - shift-control-wheel-up zooms in only the X axis > > > - shift-control-wheel-down zooms out only the X axis > > > > > > > > > These work for linear or log axes. > > > > > > A simple plot for testing, with or without log axes: > > > > > > set parametric; plot sin(t)+1.02,cos(t)+1.02 > > > > > > (If zero is not currently on an axis, you can use "L" to toggle > > > logscale along that axis.) > > > > > > > > > I'll be glad to add documentation, but first I'll see what changes > > > people want. E.g.: > > > > > > - Are the pan and zoom steps reasonable? Should they be user-tunable? > > > - Do you have a better idea for shift-control-wheel? > > > - Each of these commands is added to the zoom stack, so they can be > > > undone individually. That was easy to implement, but do we want that? > > > Does "u" recover all that memory? Should we suggest that the user > > > type "u" occasionally? > > > > > > - Jim Van Zandt > > > > > > ------------------------------------------------------------------------------ > > > Enter the BlackBerry Developer Challenge > > > This is your chance to win up to $100,000 in prizes! For a limited time, > > > vendors submitting new applications to BlackBerry App World(TM) will have > > > the opportunity to enter the BlackBerry Developer Challenge. See full prize > > > details at: http://p.sf.net/sfu/Challenge > > > _______________________________________________ > > > gnuplot-beta mailing list > > > gnu...@li... > > > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > > > > > > > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -------------------------------------- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ |