You can subscribe to this list here.
| 2001 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(83) |
Nov
(57) |
Dec
(111) |
| 2004 |
Jan
(38) |
Feb
(121) |
Mar
(107) |
Apr
(241) |
May
(102) |
Jun
(190) |
Jul
(239) |
Aug
(158) |
Sep
(184) |
Oct
(193) |
Nov
(47) |
Dec
(68) |
| 2005 |
Jan
(190) |
Feb
(105) |
Mar
(99) |
Apr
(65) |
May
(92) |
Jun
(250) |
Jul
(197) |
Aug
(128) |
Sep
(101) |
Oct
(183) |
Nov
(186) |
Dec
(42) |
| 2006 |
Jan
(102) |
Feb
(122) |
Mar
(154) |
Apr
(196) |
May
(181) |
Jun
(281) |
Jul
(310) |
Aug
(198) |
Sep
(145) |
Oct
(188) |
Nov
(134) |
Dec
(90) |
| 2007 |
Jan
(134) |
Feb
(181) |
Mar
(157) |
Apr
(57) |
May
(81) |
Jun
(204) |
Jul
(60) |
Aug
(37) |
Sep
(17) |
Oct
(90) |
Nov
(122) |
Dec
(72) |
| 2008 |
Jan
(130) |
Feb
(108) |
Mar
(160) |
Apr
(38) |
May
(83) |
Jun
(42) |
Jul
(75) |
Aug
(16) |
Sep
(71) |
Oct
(57) |
Nov
(59) |
Dec
(152) |
| 2009 |
Jan
(73) |
Feb
(213) |
Mar
(67) |
Apr
(40) |
May
(46) |
Jun
(82) |
Jul
(73) |
Aug
(57) |
Sep
(108) |
Oct
(36) |
Nov
(153) |
Dec
(77) |
| 2010 |
Jan
(42) |
Feb
(171) |
Mar
(150) |
Apr
(6) |
May
(22) |
Jun
(34) |
Jul
(31) |
Aug
(38) |
Sep
(32) |
Oct
(59) |
Nov
(13) |
Dec
(62) |
| 2011 |
Jan
(114) |
Feb
(139) |
Mar
(126) |
Apr
(51) |
May
(53) |
Jun
(29) |
Jul
(41) |
Aug
(29) |
Sep
(35) |
Oct
(87) |
Nov
(42) |
Dec
(20) |
| 2012 |
Jan
(111) |
Feb
(66) |
Mar
(35) |
Apr
(59) |
May
(71) |
Jun
(32) |
Jul
(11) |
Aug
(48) |
Sep
(60) |
Oct
(87) |
Nov
(16) |
Dec
(38) |
| 2013 |
Jan
(5) |
Feb
(19) |
Mar
(41) |
Apr
(47) |
May
(14) |
Jun
(32) |
Jul
(18) |
Aug
(68) |
Sep
(9) |
Oct
(42) |
Nov
(12) |
Dec
(10) |
| 2014 |
Jan
(14) |
Feb
(139) |
Mar
(137) |
Apr
(66) |
May
(72) |
Jun
(142) |
Jul
(70) |
Aug
(31) |
Sep
(39) |
Oct
(98) |
Nov
(133) |
Dec
(44) |
| 2015 |
Jan
(70) |
Feb
(27) |
Mar
(36) |
Apr
(11) |
May
(15) |
Jun
(70) |
Jul
(30) |
Aug
(63) |
Sep
(18) |
Oct
(15) |
Nov
(42) |
Dec
(29) |
| 2016 |
Jan
(37) |
Feb
(48) |
Mar
(59) |
Apr
(28) |
May
(30) |
Jun
(43) |
Jul
(47) |
Aug
(14) |
Sep
(21) |
Oct
(26) |
Nov
(10) |
Dec
(2) |
| 2017 |
Jan
(26) |
Feb
(27) |
Mar
(44) |
Apr
(11) |
May
(32) |
Jun
(28) |
Jul
(75) |
Aug
(45) |
Sep
(35) |
Oct
(285) |
Nov
(99) |
Dec
(16) |
| 2018 |
Jan
(8) |
Feb
(8) |
Mar
(42) |
Apr
(35) |
May
(23) |
Jun
(12) |
Jul
(16) |
Aug
(11) |
Sep
(8) |
Oct
(16) |
Nov
(5) |
Dec
(8) |
| 2019 |
Jan
(9) |
Feb
(28) |
Mar
(4) |
Apr
(10) |
May
(7) |
Jun
(4) |
Jul
(4) |
Aug
|
Sep
(4) |
Oct
|
Nov
(23) |
Dec
(3) |
| 2020 |
Jan
(19) |
Feb
(3) |
Mar
(22) |
Apr
(17) |
May
(10) |
Jun
(69) |
Jul
(18) |
Aug
(23) |
Sep
(25) |
Oct
(11) |
Nov
(20) |
Dec
(9) |
| 2021 |
Jan
(1) |
Feb
(7) |
Mar
(9) |
Apr
|
May
(1) |
Jun
(8) |
Jul
(6) |
Aug
(8) |
Sep
(7) |
Oct
|
Nov
(2) |
Dec
(23) |
| 2022 |
Jan
(23) |
Feb
(9) |
Mar
(9) |
Apr
|
May
(8) |
Jun
(1) |
Jul
(6) |
Aug
(8) |
Sep
(30) |
Oct
(5) |
Nov
(4) |
Dec
(6) |
| 2023 |
Jan
(2) |
Feb
(5) |
Mar
(7) |
Apr
(3) |
May
(8) |
Jun
(45) |
Jul
(8) |
Aug
|
Sep
(2) |
Oct
(14) |
Nov
(7) |
Dec
(2) |
| 2024 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
(7) |
May
(2) |
Jun
(1) |
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
(4) |
Dec
(14) |
| 2025 |
Jan
(22) |
Feb
(6) |
Mar
(5) |
Apr
(14) |
May
(6) |
Jun
(11) |
Jul
(19) |
Aug
|
Sep
(17) |
Oct
(1) |
Nov
(2) |
Dec
(18) |
| 2026 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Daniel J S. <dan...@ie...> - 2006-08-07 05:58:48
|
Ethan A Merritt wrote: > > You need to say > plot "t3.dat" using ($1):($2) Oh yeah. I recall that now from the demo examples. > Someone long ago decided that "using 1:2" should > behave differently than "using ($1):($2)". I don't know > why, but we're stuck with it unless we want to break > with all previous versions. This sounds like a familiar discussion. Dan |
|
From: Ethan A M. <merritt@u.washington.edu> - 2006-08-07 05:45:30
|
On Sunday 06 August 2006 10:45 pm, Daniel J Sebald wrote: > Dmitri A. Sergatskov wrote: > > 0 2 > > 2 0 > > NaN NaN > > 4 2 > > 2 4 > > > > with gnuplot 4.1 (today's CVS snapshot): > > gnuplot> plot "t3.dat" > > ^ > > Bad data on line 3 You need to say plot "t3.dat" using ($1):($2) > plot "t3.dat" using 1:2 > > That appears to work the same. Not sure why. This is explained in the help files, with examples. Really. Now I agree that it's a peculiar way for it to work, but it is in fact doing exactly what it is documented to do. Someone long ago decided that "using 1:2" should behave differently than "using ($1):($2)". I don't know why, but we're stuck with it unless we want to break with all previous versions. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |
|
From: Daniel J S. <dan...@ie...> - 2006-08-07 05:35:44
|
Dmitri A. Sergatskov wrote:
>
> Here is the data file ("t3.dat"):
> # -- begin
> 0 2
> 2 0
> NaN NaN
> 4 2
> 2 4
> # -- end
>
> with gnuplot 4.1 (today's CVS snapshot):
> gnuplot> plot "t3.dat"
> ^
> Bad data on line 3
Try
plot "t3.dat" using 1:2
without setting data file missing. That appears to work the same. Not sure why.
Dan
|
|
From: Dmitri A. S. <das...@gm...> - 2006-08-07 05:07:22
|
On 8/6/06, Ethan A Merritt <merritt@u.washington.edu> wrote:
> > It is an issue, because previously I did not bother to check
> > if NaNs in my files written as "NaN" or as "nan".
>
> gnuplot reads the number using strtod().
> The linux man page for strtod() says:
>
> An infinity is either ``INF'' or ``INFINITY'', disregarding case.
> A NAN is ``NAN'' (disregarding case) optionally followed by `(', a
> sequence of characters, followed by ')'. The character string speci-
> fies in an implementation-dependent way the type of NAN.
Here is the data file ("t3.dat"):
# -- begin
0 2
2 0
NaN NaN
4 2
2 4
# -- end
with gnuplot 4.1 (today's CVS snapshot):
gnuplot> plot "t3.dat"
^
Bad data on line 3
gnuplot> set datafile missing "NaN"
gnuplot> plot "t3.dat"
gnuplot>
(gnuplot 4.0 just plots it)
> That's a bit hard to believe.
>
> How big are your data files?
For the benchamrk I made 2 column data file
x = (-10,10), y = sin(x)
with 1e6 (one million) rows.
cmd is just a one line script
first it is:
plot "t.dat"
[dima@das200 tmp]$ time gnuplot < cmd
real 0m3.814s
user 0m3.488s
sys 0m0.152s
Now changed it to
plot "t.dat" using 1:2
[dima@das200 tmp]$ time gnuplot < cmd
real 0m3.831s
user 0m3.528s
sys 0m0.176s
And finally changed it to
plot "t.dat" using ($1):($2)
[dima@das200 tmp]$ time gnuplot < cmd
real 0m11.086s
user 0m5.828s
sys 0m4.600s
So the wall clock actually increased by factor of 4 mostly due to
"sys" time (originally I just looked at user time -- that is where 150%
came from). I tried both X11 terminal and "dumb" (and output to
/dev/null) w/o any noticeable difference. These numbers do not
include time of
gnuplot_x11 doing actual drawing.
I did multiple passes, so I am pretty sure the data file is in disk cache.
All this is on FedoraCore 5/ Pentiun4 2.6GHz / 2GB of RAM
>
> EAM
>
Sincerely,
Dmitri.
--
|
|
From: Daniel J S. <dan...@ie...> - 2006-08-07 04:26:11
|
Ethan A Merritt wrote: >>A simple benchmark (time gnuplot < cmd) shows that (on my computer >>at least) plot "file" using ($1):($2) takes about 150% as long >>as plot "file". > > > That's a bit hard to believe. Actually, it may be correct. Isn't the difference between "using 1:2" and "using ($1):($2)" that the latter passes the data through a function? (In this case a very simple function.) That is, the "action table" code is called. Try just "using 1:2", Dmitri, and see if that speeds things back to what you expect. Dan |
|
From: Ethan A M. <merritt@u.washington.edu> - 2006-08-07 04:19:48
|
On Sunday 06 August 2006 09:07 pm, Dmitri A. Sergatskov wrote:
> > For what it's worth...
> > Your "NaN" strings *are* being read as legal IEEE format numbers.
> > Using "set datafile missing ..." is not the issue.
> > The issue is what to do when a number is not legal (NaN, Inf,
> > underflow).
>
> It is an issue, because previously I did not bother to check
> if NaNs in my files written as "NaN" or as "nan".
gnuplot reads the number using strtod().
The linux man page for strtod() says:
An infinity is either ``INF'' or ``INFINITY'', disregarding case.
A NAN is ``NAN'' (disregarding case) optionally followed by `(', a
sequence of characters, followed by ')'. The character string speci-
fies in an implementation-dependent way the type of NAN.
> Also, how do I handle file that has both "NaN" and "Inf"?
They are the same, for this purpose.
Do not try to describe them via "set datafile missing";
just let them be read in as floating point numbers.
It is in general not safe to read files without the "using"
specifier unless you are absolutely certain what each line contains.
We have tried to maintain backwards compatibility with old behaviour,
but recent extensions and new plot modes require "using" in order
to work at all. For example, in order to read color information from
the data file, or point size, you need extra columns. But if you
do not tell the program which column is which, it will get confused
and plot the wrong thing altogether.
> A simple benchmark (time gnuplot < cmd) shows that (on my computer
> at least) plot "file" using ($1):($2) takes about 150% as long
> as plot "file".
That's a bit hard to believe.
How big are your data files?
Do they have many columns per line, or only two?
(This used to be an issue but I thought we fixed it).
Are you willing/able to run profiling so that you can tell us
which routine[s] the time is being lost to?
EAM
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|
|
From: Daniel J S. <dan...@ie...> - 2006-08-07 04:19:30
|
Dmitri A. Sergatskov wrote: > So I was hoping there is some setting that would allow old > behavior. Apparently it is not the case, so be it, we will adapt. > Perhaps it is time to convert to "binary" datafile format... That would give a speed increase, but of course there isn't the flexibility with DF_MISSING, DF_UNDEFINED as there is with ASCII files, unless we want to define strings some how... but I think that is low priority. Binary is for speed purposes. >>The issue is what to do when a number is not legal (NaN, Inf, >>underflow). > > > It is an issue, because previously I did not bother to check > if NaNs in my files written as "NaN" or as "nan". > Also, how do I handle file that has both "NaN" and "Inf"? [snip] > I understand this problem. I also prefere the old (4.0) behavior. > For one thing, since the plot is the graphical representation of > the data I want to have a visual feedback that I have "funny" > datapoints. Broken line provides such a feedback. Plotting > over it -- hides it. > Again, I am not asking to change anything. At least not at this > moment... You are confirming the issue, however. I say give the user the flexibility and not try to interpret what they mean, then it is no more worries for developers. Dan |
|
From: Daniel J S. <dan...@ie...> - 2006-08-07 04:13:05
|
Ethan A Merritt wrote: > On Sunday 06 August 2006 02:20 pm, Dmitri A. Sergatskov wrote: > >>I there any way I can get an old (4.0) behavior with new >>gnuplot when plotting data files with missing data? > > > Short answer: Yes. > plot 'test1.dat' using ($1):($2) with lines > > Longer answer: > > The whole "missing" issue drives me to distraction. > No two people expect the same thing from it, so it's no wonder > that many bug reports are filed against it. 3.7 and 4.0 did > not behave identically, so existing scripts are not an > infallible guide either. > > For what it's worth... > Your "NaN" strings *are* being read as legal IEEE format numbers. > Using "set datafile missing ..." is not the issue. > The issue is what to do when a number is not legal (NaN, Inf, > underflow). > Plot, or not plot? > Increment the line number, or not? > Error message? I agree. No one particular way of dealing with this will satisfy everybody. Hence I say it should be configurable. And doing so would really be a nice feature that users like. The problem with satisfying everyone right now is that there simply isn't enough variation in treating the data. Being so limited is the problem. We have expanded things a bit with DF_MISSING, but not enough. There should be 1) Enough variety to satisfy everyone. 2) And/or configurability. 3) Multiple definitions for the class of data type. We don't want to get so abstract that things become arcane, so lets go with say three types with some default behavior. Internally these would be DF_MISSING: Simply SKIP, no break between points DF_UNDEFINED: BREAK between points. DF_NAN: Don't know, also BREAK? Well, then we also allow some configurability with multiple definitions. That would be enough flexibility so that the user has more than one way of attacking this problem. S/he could add more strings to a data class or switch around strings in the definition of these classes, or configure the manner in which each class is treated. With a demo, the user should get the idea clearly. Dan |
|
From: Dmitri A. S. <das...@gm...> - 2006-08-07 04:07:47
|
On 8/6/06, Ethan A Merritt <merritt@u.washington.edu> wrote: > On Sunday 06 August 2006 02:20 pm, Dmitri A. Sergatskov wrote: > > I there any way I can get an old (4.0) behavior with new > > gnuplot when plotting data files with missing data? > > Short answer: Yes. > plot 'test1.dat' using ($1):($2) with lines I figure this out. This has a couple problems. The issue came about from using gnuplot from octave. Since octave interpreter writes the (temporary) data file for gnuplot to plot, it knows the data format and thus does not need to specify "using" string. A simple benchmark (time gnuplot < cmd) shows that (on my computer at least) plot "file" using ($1):($2) takes about 150% as long as plot "file". So I was hoping there is some setting that would allow old behavior. Apparently it is not the case, so be it, we will adapt. Perhaps it is time to convert to "binary" datafile format... > > Longer answer: > > The whole "missing" issue drives me to distraction. > No two people expect the same thing from it, so it's no wonder > that many bug reports are filed against it. 3.7 and 4.0 did > not behave identically, so existing scripts are not an > infallible guide either. > > For what it's worth... > Your "NaN" strings *are* being read as legal IEEE format numbers. > Using "set datafile missing ..." is not the issue. > The issue is what to do when a number is not legal (NaN, Inf, > underflow). It is an issue, because previously I did not bother to check if NaNs in my files written as "NaN" or as "nan". Also, how do I handle file that has both "NaN" and "Inf"? > Plot, or not plot? > Increment the line number, or not? > Error message? I understand this problem. I also prefere the old (4.0) behavior. For one thing, since the plot is the graphical representation of the data I want to have a visual feedback that I have "funny" datapoints. Broken line provides such a feedback. Plotting over it -- hides it. Again, I am not asking to change anything. At least not at this moment... > > EAM > Sincerely, Dmitri. -- |
|
From: Ethan A M. <merritt@u.washington.edu> - 2006-08-07 03:27:43
|
On Sunday 06 August 2006 02:20 pm, Dmitri A. Sergatskov wrote: > I there any way I can get an old (4.0) behavior with new > gnuplot when plotting data files with missing data? Short answer: Yes. plot 'test1.dat' using ($1):($2) with lines Longer answer: The whole "missing" issue drives me to distraction. No two people expect the same thing from it, so it's no wonder that many bug reports are filed against it. 3.7 and 4.0 did not behave identically, so existing scripts are not an infallible guide either. For what it's worth... Your "NaN" strings *are* being read as legal IEEE format numbers. Using "set datafile missing ..." is not the issue. The issue is what to do when a number is not legal (NaN, Inf, underflow). Plot, or not plot? Increment the line number, or not? Error message? EAM > E.g. consider the file (say "test1.dat") > > # -- begin > 0 1 > 1 0 > NaN NaN > 2 1 > 1 2 > # -- end > > In gnuplot 4.0 > plot "test1.dat" with line > produces plot with two segments. > > With 4.1, first one has to do > set datafile missing "NaN" > (that still would not handle "nan") > but after that > plot "test1.dat" with line > would connect the segments along (1 0) (2 1) line. > > I am not to argue wich way is better (though I would prefer > gnuplot to handle IEEE special numbers automatically), > I am just wondering if this behavior (to connect the segments) > is indeed the expected one (not a bug) and if it is indeed so, > is there any variable I can set to get old style behavior? > > Sincerely, > > Dmitri. > -- > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |
|
From: Daniel J S. <dan...@ie...> - 2006-08-07 02:23:43
|
Daniel J Sebald wrote: > From: Daniel J Sebald <danielDOTsebaldATieeeDOTorg> Oh no! I sent my email address inside the body. Shouldn't do that... |
|
From: Daniel J S. <dan...@ie...> - 2006-08-07 02:10:41
|
Dmitri A. Sergatskov wrote: > I there any way I can get an old (4.0) behavior with new > gnuplot when plotting data files with missing data? At one point I had created a patch for better control of this and gave a demo illustrating how to create plots with breaks in the line and simply skipping points. I thought it was a good idea for a feature, i.e., a method of telling gnuplot how it should handle various types, but it didn't get much traction. > > E.g. consider the file (say "test1.dat") > > # -- begin > 0 1 > 1 0 > NaN NaN > 2 1 > 1 2 > # -- end > > In gnuplot 4.0 > plot "test1.dat" with line > produces plot with two segments. > > With 4.1, first one has to do > set datafile missing "NaN" > (that still would not handle "nan") There is patch for multiple missing, e.g., set missint "NaN" "nan" "?". Give that a try if you need such a feature. > but after that > plot "test1.dat" with line > would connect the segments along (1 0) (2 1) line. > > I am not to argue wich way is better (though I would prefer > gnuplot to handle IEEE special numbers automatically), > I am just wondering if this behavior (to connect the segments) > is indeed the expected one (not a bug) and if it is indeed so, > is there any variable I can set to get old style behavior? I say it should be configurable. Anyway, the thread of this discussion in the past is titled: Subject: Re: MISSING and UNDEFINED Date: Sun, 18 Jun 2006 18:00:57 -0500 From: Daniel J Sebald <dan...@ie...> There are some PNGs there showing the output of the demo. Dan |
|
From: Dmitri A. S. <das...@gm...> - 2006-08-06 21:20:49
|
I there any way I can get an old (4.0) behavior with new gnuplot when plotting data files with missing data? E.g. consider the file (say "test1.dat") # -- begin 0 1 1 0 NaN NaN 2 1 1 2 # -- end In gnuplot 4.0 plot "test1.dat" with line produces plot with two segments. With 4.1, first one has to do set datafile missing "NaN" (that still would not handle "nan") but after that plot "test1.dat" with line would connect the segments along (1 0) (2 1) line. I am not to argue wich way is better (though I would prefer gnuplot to handle IEEE special numbers automatically), I am just wondering if this behavior (to connect the segments) is indeed the expected one (not a bug) and if it is indeed so, is there any variable I can set to get old style behavior? Sincerely, Dmitri. -- |
|
From: <br...@ph...> - 2006-08-04 21:30:56
|
Ethan Merritt wrote: > My recommendation would be that any locally-modified version should > change the contents of the PATCHLEVEL file. Everything else will > be handled automatically. Perhaps this should be documented somewhere > (INSTALL? README?) It's actually sort-of required, by the Copyright statement. It says that any modified binary distributed to others has to report itself as a modified version, and give the contacts of the person who modified it. |
|
From: Daniel J S. <dan...@ie...> - 2006-08-04 17:43:44
|
Ethan Merritt wrote: > On Friday 04 August 2006 10:12 am, Daniel J Sebald wrote: > >>Ethan Merritt wrote: >> >>>On Friday 04 August 2006 09:43 am, Daniel J Sebald wrote: >>> >>>>First, could this >>>>"gnuplot-defined variables" be made a permanent thing? >>> >>>I do not understand the question. >> >>You said: "Of course, this requires that string variables are >>configure in (now the default)." But string vars are something >>different. The GPVAL_VERSION is always present then and can't be >>configured out of gnuplot some how? (I haven't followed the GPVAL_ >>threads.) > > > I still don't understand the question. > > GPVAL_VERSION is a floating point number, and is always defined. > > But GPVAL_COMPILE_OPTIONS is a string, so it can only > be loaded into a variable if string support is configured. RIght, I sort of figured that out when I thought twice about "string" qualifier. The GPVAL_VERSION is always present. So the user can do a print(GPVAL_VERSION) and get the value back. >>That helps a little bit in the sense that it weeds out a lot. But it >>still isn't at the command line... > > > Er, then what do you mean by "command line"? I guess I meant the "gnuplot prompt". Slightly different ways of getting the same thing. But both ways are available, so whichever method a programmer might prefer is currently available. Good. Dan |
|
From: Ethan M. <merritt@u.washington.edu> - 2006-08-04 17:17:17
|
On Friday 04 August 2006 10:12 am, Daniel J Sebald wrote: > Ethan Merritt wrote: > > On Friday 04 August 2006 09:43 am, Daniel J Sebald wrote: > >>First, could this > >>"gnuplot-defined variables" be made a permanent thing? > > > > I do not understand the question. > > You said: "Of course, this requires that string variables are > configure in (now the default)." But string vars are something > different. The GPVAL_VERSION is always present then and can't be > configured out of gnuplot some how? (I haven't followed the GPVAL_ > threads.) I still don't understand the question. GPVAL_VERSION is a floating point number, and is always defined. But GPVAL_COMPILE_OPTIONS is a string, so it can only be loaded into a variable if string support is configured. > >>I think I've been asked if gnuplot somehow could return its > >> version. > > > > gnuplot --version > > gnuplot -V > > That helps a little bit in the sense that it weeds out a lot. But it > still isn't at the command line... Er, then what do you mean by "command line"? -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |
|
From: Daniel J S. <dan...@ie...> - 2006-08-04 17:02:57
|
Ethan Merritt wrote: > On Friday 04 August 2006 09:43 am, Daniel J Sebald wrote: > >>First, could this >>"gnuplot-defined variables" be made a permanent thing? > > > I do not understand the question. You said: "Of course, this requires that string variables are configure in (now the default)." But string vars are something different. The GPVAL_VERSION is always present then and can't be configured out of gnuplot some how? (I haven't followed the GPVAL_ threads.) >>I think I've been asked if gnuplot somehow could return its version. > > > gnuplot --version > gnuplot -V That helps a little bit in the sense that it weeds out a lot. But it still isn't at the command line... eh, let user demand drive this. If more people ask, then I'll raise the issue again. >>Second, is what you've done, Ethan, easy enough so that a user might >>be able to program their own special version of gnuplot and add a >>custom variable to identify their version? Or don't we want to >>encourage that sort of thing?) > > > My recommendation would be that any locally-modified version should > change the contents of the PATCHLEVEL file. Everything else will > be handled automatically. OK. Dan |
|
From: Ethan M. <merritt@u.washington.edu> - 2006-08-04 16:51:10
|
On Friday 04 August 2006 09:43 am, Daniel J Sebald wrote: > First, could this > "gnuplot-defined variables" be made a permanent thing? I do not understand the question. > I think I've been asked if gnuplot somehow could return its version. gnuplot --version gnuplot -V > Second, is what you've done, Ethan, easy enough so that a user might > be able to program their own special version of gnuplot and add a > custom variable to identify their version? Or don't we want to > encourage that sort of thing?) My recommendation would be that any locally-modified version should change the contents of the PATCHLEVEL file. Everything else will be handled automatically. Perhaps this should be documented somewhere (INSTALL? README?) -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |
|
From: Daniel J S. <dan...@ie...> - 2006-08-04 16:34:20
|
Petr Mikulik wrote: >>>Unfortunately, this is not portable. I've just tried a windows version >>>compiled with all of the "default" #defines in makefile&config.mgw, >>>including IMAGE; but its "show version long" reports only: >>> >>>Compile options: >>>+READLINE -LIBREADLINE +GD_PNG +GD_TTF -NOCWDRC +USE_MOUSE >>> >>>and thus it is not updated to options set from within config.h. >>>Cannot the string for the "compiled options" be concanated according to >>>#define's? >> >>I see no windows-specific code in show_version(), so I am at >>a loss to explain how this could go wrong. > > > I'm sorry, it was a false alarm. I was launching wgnuplot from July ... but > 2004 on this computer ... so all is fine, and I vote for the proposed new > GPVAL_. So it did what it was supposed to do and you misinterpretted. That's the developers trap: always doubting if thing are programmed correctly. :-) It seemed to work for me, very useful, good idea Ethan. And the sure-fired conditional script in all.dem is the way I'd go. (Remember, part of scripts is to be tutorial and from the users standpoint that is helpful to see.) I will keep thinking about future compatibility issues, but I think it should be fine... Couple things. First, could this "gnuplot-defined variables" be made a permanent thing? I think I've been asked if gnuplot somehow could return its version. (The trick I use now is to lauch gnuplot, get that startup info and sort through that looking for the version. Or is there already a better way?)... Second, is what you've done, Ethan, easy enough so that a user might be able to program their own special version of gnuplot and add a custom variable to identify their version? Or don't we want to encourage that sort of thing?) Dan |
|
From: Petr M. <mi...@ph...> - 2006-08-04 15:25:38
|
>> Unfortunately, this is not portable. I've just tried a windows version >> compiled with all of the "default" #defines in makefile&config.mgw, >> including IMAGE; but its "show version long" reports only: >> >> Compile options: >> +READLINE -LIBREADLINE +GD_PNG +GD_TTF -NOCWDRC +USE_MOUSE >> >> and thus it is not updated to options set from within config.h. >> Cannot the string for the "compiled options" be concanated according to >> #define's? > > I see no windows-specific code in show_version(), so I am at > a loss to explain how this could go wrong. I'm sorry, it was a false alarm. I was launching wgnuplot from July ... but 2004 on this computer ... so all is fine, and I vote for the proposed new GPVAL_. --- PM |
|
From: Ethan A M. <merritt@u.washington.edu> - 2006-08-04 15:06:44
|
On Friday 04 August 2006 12:21 am, Petr Mikulik wrote: > > Unfortunately, this is not portable. I've just tried a windows version > compiled with all of the "default" #defines in makefile&config.mgw, > including IMAGE; but its "show version long" reports only: > > Compile options: > +READLINE -LIBREADLINE +GD_PNG +GD_TTF -NOCWDRC +USE_MOUSE > > and thus it is not updated to options set from within config.h. > Cannot the string for the "compiled options" be concanated according to > #define's? I see no windows-specific code in show_version(), so I am at a loss to explain how this could go wrong. If a windows build does not correctly report its configuration, that's a bug all by itself and should be fixed. But yes, we would need to to solve that problem first. show.c: #include "alloc.h" alloc.h: #include "syscfg.h" syscfg.h: #include "config.h" How can this fail? (and how can the build succeed if it does?) -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |
|
From: Petr M. <mi...@ph...> - 2006-08-04 07:22:03
|
>>> if (!strstrt(GPVAL_COMPILE_OPTIONS,"-IMAGE")) load "image.dem" >> No, that would mean not "way backward" compatible because "image.dem" >> would still be run on older versions of gnuplot... > > Not a problem. Here's a variant that checks for version compatibility: > > if (GPVAL_VERSION == 4.1 && strstrt(GPVAL_COMPILE_OPTIONS,"+IMAGE")) \ > load 'image.dem' > > Of course, this requires that string variables are configure in > (now the default). But it you want it even more foolproof then use > > if (defined(GPVAL_COMPILE_OPTIONS)) \ > if (GPVAL_VERSION == 4.1 && strstrt(GPVAL_COMPILE_OPTIONS,"+IMAGE")) \ > load 'image.dem' Unfortunately, this is not portable. I've just tried a windows version compiled with all of the "default" #defines in makefile&config.mgw, including IMAGE; but its "show version long" reports only: Compile options: +READLINE -LIBREADLINE +GD_PNG +GD_TTF -NOCWDRC +USE_MOUSE and thus it is not updated to options set from within config.h. Cannot the string for the "compiled options" be concanated according to #define's? --- PM |
|
From: Ethan A M. <merritt@u.washington.edu> - 2006-08-04 04:45:58
|
On Thursday 03 August 2006 12:56 pm, Daniel J Sebald wrote:
> > if (!strstrt(GPVAL_COMPILE_OPTIONS,"-IMAGE")) load "image.dem"
> No, that would mean not "way backward" compatible because "image.dem"
> would still be run on older versions of gnuplot...
Not a problem. Here's a variant that checks for version compatibility:
if (GPVAL_VERSION == 4.1 && strstrt(GPVAL_COMPILE_OPTIONS,"+IMAGE")) \
load 'image.dem'
Of course, this requires that string variables are configure in
(now the default). But it you want it even more foolproof then use
if (defined(GPVAL_COMPILE_OPTIONS)) \
if (GPVAL_VERSION == 4.1 && strstrt(GPVAL_COMPILE_OPTIONS,"+IMAGE")) \
load 'image.dem'
That is safe even in the absence of string variables (although
it doesn't actually run the demo).
I've put such on SourceForge. Please have a look.
It's pretty non-intrusive (all it does is add a new GPVAL_*** variable),
and it will allow us to protect all the configuration-dependent demos
in all.dem that are run by "make check".
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|
|
From: Daniel J S. <dan...@ie...> - 2006-08-03 19:46:52
|
> So that means we'd want to condition on the "negative presence" of an option? I.e. > > if (!strstrt(GPVAL_COMPILE_OPTIONS,"-IMAGE")) load "image.dem" > > I think (?) No, that would mean not "way backward" compatible because "image.dem" would still be run on older versions of gnuplot... which maybe isn't a concern. Whatever; so long as the CVS version of the demos works with the same CVS version of gnuplot. Dan |
|
From: Daniel J S. <dan...@ie...> - 2006-08-03 19:35:50
|
Ethan Merritt wrote:
> On Thursday 03 August 2006 12:10 pm, Daniel J Sebald wrote:
>
>>>Better yet would be to figure out a way to make all.dem itself
>>>recognize and skip unsupported demos, but to my recollection past
>>>discussions never came up with a reasonable way to do that.
>>
>>I think a function that allows executing a command without falling
>>back to the command line would be nice. Say "attempt"
>
>
> Maybe, but it wouldn't actually help in the case of all.dem.
> Falling back to the command line would leave you in the middle of
> a sequence of now-useless commands. What we need for the demo
> case is some way of skipping the demo altogether.
Well, that sort of is the limitation. I mean,
if attempt("plot 'foo.dat' with foos") load 'foo.dem' : print "no foo"
would be sort of like putting the first line of your demo inside "all.dem", which is a bit silly. But if there were some way of calling a command that would verify the existence of the support, i.e., "set style"... eh, still nothing elegant.
>
> Hmm. I've got an idea that wouldn't have been possible before.
>
> Now that we have all these GPVAL_*** variables, maybe
> we should load one with the conditional compilation flags as
> reported by "show version long".
>
> gnuplot> print GPVAL_COMPILE_OPTIONS
> -READLINE +LIBREADLINE +HISTORY +BACKWARDS_COMPATIBILITY
> +BINARY_DATA +GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION -NOCWDRC
> +X11 +X11_POLYGON +MULTIBYTE +USE_MOUSE +HIDDEN3D_QUADTREE
> +DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE
>
>
> Then we could do
>
> if (strstrt(GPVAL_COMPILE_OPTIONS,"+IMAGE")) load "image.dem"
>
> Anyone see anything wrong with this approach?
Sounds alright to me. This would be a variable the user can't alter, right? I like it.
Would you want to specifically require the + and - settings? I'm thinking of "backward" and "forward" compatibility here. In later versions of gnuplot, some of these options may no longer be present because they are no longer options... So that means we'd want to condition on the "negative presence" of an option? I.e.
if (!strstrt(GPVAL_COMPILE_OPTIONS,"-IMAGE")) load "image.dem"
I think (?)
Dan
|