|
From: Ethan A M. <merritt@u.washington.edu> - 2008-02-10 05:02:57
|
On Saturday 09 February 2008 20:25, Tatsuro MATSUOKA wrote: > Hi Ethan > > cc. Prof. Kakuto, HBB > > Now I think the reply at the end of this now is doubtful. Prof. Kakuto does maintain the wgnuplot > binaries frequently. > > Prof. Kakuto! Am I right? > > I have build a CVS gnuplot on cygwin for cygwin octave at Jan 18, 2008. > However > gnuplot> show version > > G N U P L O T > Version 4.3 patchlevel 0 > last modified June 2007 > System: CYGWIN_NT-5.1 1.5.25(0.156/4/2) > > Copyright (C) 1986 - 1993, 1998, 2004, 2007 > Thomas Williams, Colin Kelley and many othe > > > With this cvs gnuplot on the cygwin, the mouse zooming in 2D and rotating 3D plots by mouse was > possible from the octave plotting even if the plotings via pipe were done from not only the > cygwin-octave but also the mingw-octave. > > I think the binary at > http://www.ring.gr.jp/pub/text/TeX/ptex-win32/utils/ > > is not so old. > The incorrect date was perhaps a bug in version related codes in the cvs source trees and it may have > been fixed quite recently. Yes, the "last modified date" was changed only a few days ago. But the reason I said the wgnuplot executable was older than August 2007 was not because of the "last modified" date. I said it was older because the command plot x; refresh reported gnuplot> refresh ^ invalid command This means that the executable was built from a source tree that did not contain my patch to add support for volatile data and mousing of piped data. I have now downloaded the binary at http://www.ring.gr.jp/pub/text/TeX/ptex-win32/utils/ This one does _not_ work for me under wine+linux. After the first plot, it locks up and fails to read any input from the keyboard. > As you said in your reply, it was no problem for linux+wine, there may be something windows specific > problem. > > Hi, Hans!! > I think you are the main develpper for the wgnuplot. > Are there any suggestions to me? I would suggest to test first the gnuplot end by itself. You can test the support for mousing volatile data by typing # Plot data from input stream plot '-' with lines 1 1 2 3 3 2 4 4 5 2 e refresh # Test mousing operations here refresh If this works, then I think the problem must be either something wrong on the Octave end of the pipe, something wrong with the pipe itself, or perhaps there is an error in handling piped binary data (hard to test from the keyboard). Good luck! Ethan > > > Regards > > Tatsuro > > > --- Ethan A Merritt <merritt@u.washington.edu> wrote: > > > That executable was built from the June 2007 source tree. > > Therefore it is from before the change you ask about. > > The "refresh" command and mousing of in-line data are not present > > in that executable. Normal mousing and zoom works OK in that > > wgnuplot.exe, at least when I run it using linux+wine. > > > > Ethan > > > > > > > > > > > > > > > > The mouse zooming was not possible. > > > > > > I would like to confirm whether the change at 2007-08-31 after '***************'for only for > > x11 > > > terminal but not for win terminal or not. > > > > > > It can be readable the change is not x11 specific. > > > Are there other possibilities? > > > > > > Regards > > > > > > Tatsuro > > > > > > > > > > > > ***************************************** > > > 2007-08-31 Ethan Merritt <merritt@u.washington.edu> > > > > > > Version 2.9.? of Octave switched to piping all data to gnuplot in-line > > > rather than via a temporary file. This broke mouse zooming and replot. > > > > > > This patchset is an imperfect fix with several known problems: > > > - Clipping of zoomed 3D contour plots is not correct. > > > - splot volatile with image + zoom + unzoom is flaky > > > - plot -> zoom -> set grid -> unzoom loses the grid setting. > > > - you cannot toggle log scaling on/off while using refresh. > > > > > > Introduce a new command "refresh" that acts like replot except that it > > > does not re-read the input data. Refresh is always needed in order to > > > zoom or replot in-line data (input file '-'), but may optionally applied > > > to normal data files also by appending the attribute 'volatile'. > > > > > > * src/plot2d.c (eval_plots): This is the core change. Instead of > > > freeing stored data after each plot, keep it around in case of a > > > refresh command. The old data storage is freed at the start of the next > > > "plot" or "replot" command. This is parallel to what the 3D code was > > > already doing. Set refresh_ok = 2 at the end of a successful plot. > > > > > > * src/plot3d.c (eval_3dplots): Update comments and remove dead code. > > > Set refresh_ok = 3 at the end of a successful plot. > > > > > > * src/plot2d.c (refresh_bounds) src/plot2d.h > > > * src/plot3d.c (refresh_3dbounds) src/plot3d.h: > > > Provide a mechanism to recheck the INBOUNDS/OUTBOUNDS status of > > > existing data points after changing the current axis limits. > > > > > > * src/command.c (refresh_command refresh_request) src/command.h > > > src/gadgets.c src/gadgets.h src/tables.c: New command "refresh" that > > > acts similarly to "replot" except that it does not re-read input data. > > > > > > * src/axis.h (AXIS_UPDATE2D): Save/restore axis limits for zooming. > > > > > > * src/mouse.c (apply_zoom): Choose between refresh or replot depending > > > on whether the current plot contain volatile data. > > > > > > * src/mouse.c (builtin_toggle_log): Ignore 'l' and 'L' for volatile data > > > > > > * src/set.c (set_logscale) src/unset.c (unset_logscale): > > > Because setting or unsetting log scale changes the way input data is > > > stored, "refresh" cannot work if the log setting has changed. > > > Set a flag indicating that a full replot is necessary. > > > > > > * src/datafile.c (df_open): Accept a "volatile" keyword to indicate > > > that data in the input file may change. If data is input from pseudo- > > > device '-' or from a file marked "volatile", set a global flag so > > > that mousing/zooming/etc can choose to refresh rather than replot. > > > > > > * docs/gnuplot.doc configure.in > > > > > > > > > > > > -------------------------------------- > > > Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar > > > http://pr.mail.yahoo.co.jp/toolbar/ > > > > > > > -- > > Ethan A Merritt > > Biomolecular Structure Center > > University of Washington, Seattle 98195-7742 > > > > > -------------------------------------- > Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar > http://pr.mail.yahoo.co.jp/toolbar/ > -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |