[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Re: gnuplot error when using hist
From: |
Tatsuro MATSUOKA |
Subject: |
Fwd: Re: gnuplot error when using hist |
Date: |
Mon, 1 Oct 2007 18:31:41 +0900 (JST) |
--- Patrik H�gglund <address@hidden:
Bug report for Octave 2.9.14 configured for x86_64-pc-linux-gnu
Description:
-----------
When using for example hist(rand(1,1e4),40), the bars above number 33
disappears and I get the following type of
errors:
gnuplot0.970272 0
^
line 366: invalid command
gnuplot0.970272 280
^
line 366: invalid command
gnuplot0.999671 280
^
line 366: invalid command
gnuplot0.999671 0
^
line 366: invalid command
gnuplote
^
line 366: invalid command
gnuplot0.970272 0
^
line 366: invalid command
gnuplot0.970272 280
^
line 366: invalid command
gnuplot0.999671 280
^
line 366: invalid command
gnuplot0.999671 0
^
line 366: invalid command
gnuplot0.970272 0
^
line 366: invalid command
gnuplote
^
line 366: invalid command
I use Debian gnuplot version 4.2.0-4.
This seem to be overflow of data from pipeline.
This is a problem of gnuplot not but octave.
>From Octave 2.9.1x, all plot data are sent by pipe so that sometimes causes
buffer flow problem.
This problem is not only for octave.
Please see the thread,
http://sourceforge.net/tracker/index.php?func=detail&aid=1673352&group_id=2055&atid=102055
For gnuplot 4.2.2 pipe line problem are improved.
I recommend you to version up to gnuplot.
I myself am using the gnuplot 4.3 from the cvs repository in which mouse
zooming was imporoved.
*********Changelog of gnuplot CVS tree.
2007-08-31 Ethan Merritt <address@hidden>
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
**********************************
http://gnuplot.info/
In the page, 'Building from CVS source' is described and it is easy to build
from source.
Tatsuro
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
- Fwd: Re: gnuplot error when using hist,
Tatsuro MATSUOKA <=