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: Philipp K. J. <ja...@ie...> - 2009-11-11 17:00:11
|
> > The tangent about Perl was intended to be in the same vein as Ethan's > > comment that gnuplot is not MatLab or Mathematica or MathCad or R, and > > we shouldn't try to be. > > The wasn't me. I think it's silly to rule out a useful addition on > that basis. I think we should seriously consider any addition > that strengthens gnuplot's ability to create plots. I do want to hear a > strong case, however, that the stats command needs to be an internal part > of gnuplot rather than an external script. I currently do this sort of > thing in an external perl script (or in R). But using R to calculate the > min/mean/max is ridiculous overkill, and I'd still have to get the > information back into gnuplot in order to generate the plots. Strong case is always a little in the eye of the beholder. But here are my arguments: 1) Convenience I do this stuff w/ external scripts, too, and I always find it annoying that I have to pop up a different window, run my little script, copy and paste the results back into gnuplot... 2) Multiplatform Exactly how do you do any of this if you are NOT on Linux? (I admit this is a pretty weak argument, but it is not entirely baseless. People are much less likely to have Perl/Python installed on their Win box, compared to a standalone gnuplot binary.) 3) Stand-alone Scripting Running a separate script from gnuplot is a pain. Cutting and pasting values manually is not an option for scripts. Having stuff assigned to variables w/in the gnuplot session is therefore desirable. 4) Input Parsing Gnuplot's input parsing is very robust and flexible. It can eat a lot. My problem with external scripts is that it is more difficult to make them as robust, which means that I don't have any "pre-canned" - I write them ad-hoc for each file format that I am dealing with. But that makes it inconvenient in the long run. On the other hand, I don't want to own and maintain my own stats script, when I might as well have this functionality included in gnuplot (where it also benefits everybody else). I think some of the reluctance comes from the fact that the set of capabilities of the current stats command is fixed. There are two answers to this: - Should we extend the set of values calculated? Personally, the values that we have included cover approximately 92.5% of what I need. I think that's a pretty good ratio! I would also argue that it covers those values that are most important for PLOTTING. But I am willing to take suggestions for additional quantities. (We can also look at what other packages like R do in their "summary" functions.) - Should gnuplot (deep breath) develop a "plugin" architecture? So that you could run an external script and assign the returns to gnuplot vars in a transparent and convenient fashion? I think the latter idea is worth a thought, but it is clearly a much bigger project (not the coding, but designing a good user interface). But it seems a little like overkill for what we are trying to accomplish here. There is no claim that the stats command will save the world. But I do claim that it provides enough of a convenience (see above) to have it included. Counter-argument: I'd like to hear a strong argument why it should NOT be included. ;-) Best, Ph. |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-11-11 16:35:59
|
On Wednesday 11 November 2009, Tait wrote: > > > stats 'foo' u ($2*$3+cos($4)) should work as it is, if that is what you meant. A > > fairly large set of quantities can be calculated using the variables that are > > produced by stats, if the proper function is applied to the columns beforehand. > > That is not at all what I meant. The stats command (and plot, and others) > provide access to other data values on the same row, via $column-number. > There is, however, no way to access values on _other_ rows. I can't plot > the delta between the current $2 and the $2 of the previous row, for > example. A general way to provide formulas or expressions that operate > across multiple rows would be more flexible and also make "stats" > unnecessary. You can do this while plotting. See "running_avg.dem". Whether it's worth making the syntax of the stats command more like the plot command, that's another question. Or for that matter, whether it's better to have a separate stats command or to incorporate it into the existing plot command. > The tangent about Perl was intended to be in the same vein as Ethan's > comment that gnuplot is not MatLab or Mathematica or MathCad or R, and > we shouldn't try to be. The wasn't me. I think it's silly to rule out a useful addition on that basis. I think we should seriously consider any addition that strengthens gnuplot's ability to create plots. I do want to hear a strong case, however, that the stats command needs to be an internal part of gnuplot rather than an external script. I currently do this sort of thing in an external perl script (or in R). But using R to calculate the min/mean/max is ridiculous overkill, and I'd still have to get the information back into gnuplot in order to generate the plots. > Maybe an alternate (and more useful?) way to provide the stats > functionality is to add a contrib directory to the gnuplot > distribution in which are placed stand-alone utilities like stats > that perform useful transformations on and summaries of > gnuplot-looking data files, using gnuplot-looking syntaxes. Exactly. I'm not 100% convinced that the initial set of capabilities in the "stats" command justifies including it in the core code rather than just running an external script. But if further integration with the plotting code gives additional benefits over running an external script, so be it. |
|
From: Tait <gnu...@t4...> - 2009-11-11 11:36:47
|
> > Mean as used here seems to be the arithmetic mean. What about the geometric > > mean? (Or harmonic mean, or any of the other types of averages?) > > Harmonic mean is easily done with the present stats command as > stats 'foo' u 1:(1.0/$2) noout var > harmonic = records / sum_y I was really trying to make two points here. One, that the choice of name is ambiguous, and perhaps a more specific name would serve better. Second, the choice of an arithmetic mean (out of all the possible formulas one could use for expected value) seems arbitrary. I can almost convince myself that arithmetic mean is possibly the most common, so maybe that justifies its selection. But arithmetic mean, as you've pointed out with the harmonic mean, can be calculated separately via sum_y/records. Others like the commonly-used geometric mean can't be calculated from other values exposed by stats. > > I wonder, rather than providing a restricted set of pre-defined functions, > > is there a way to allow the user to provide a formula or expression that > > will be applied across multiple rows? Then the user could calculate the > > mean (whatever that means to their application) or standard deviation or > > some other arbitrary metric on their own. > > stats 'foo' u ($2*$3+cos($4)) should work as it is, if that is what you meant. A > fairly large set of quantities can be calculated using the variables that are > produced by stats, if the proper function is applied to the columns beforehand. That is not at all what I meant. The stats command (and plot, and others) provide access to other data values on the same row, via $column-number. There is, however, no way to access values on _other_ rows. I can't plot the delta between the current $2 and the $2 of the previous row, for example. A general way to provide formulas or expressions that operate across multiple rows would be more flexible and also make "stats" unnecessary. The tangent about Perl was intended to be in the same vein as Ethan's comment that gnuplot is not MatLab or Mathematica or MathCad or R, and we shouldn't try to be. Maybe stats is trying to make gnuplot do too much. The danger of using an 80% tool is that it will be abused and expanded to try and do 100% of jobs, when the user should have switched to a more appropriate tool long ago. Maybe an alternate (and more useful?) way to provide the stats functionality is to add a contrib directory to the gnuplot distribution in which are placed stand-alone utilities like stats that perform useful transformations on and summaries of gnuplot-looking data files, using gnuplot-looking syntaxes. Someone wanting to know the record count of a data file could (in gnuplot) do records=`contrib/countrows -using 3 -every ::2::2`. This avoids syntactic complexity in gnuplot, is more flexible while (I think) solving the same problems. It can be easily expanded to include new and improved functionality without even needing to recompile gnuplot itself. Tait |
|
From: Tatsuro M. <tma...@ya...> - 2009-11-11 08:59:00
|
Hello --- Tatsuro MATSUOKA wrote: > I have noticed not-good styles in some plots in gnuplot demo (all.dem) in wxt terminal at cvs > trees of > 2009-11-06. The multiplot graphs seem to be more oblate than those before change. > In some demos, labels are far from axes so that shapes of graghs are oblate. > I have uploaded the latest cvs snapshot as testing one. > Please examine by the below > http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin/ > 0004 gp45-winbin_2009_1106.zip > 0005 gp45-winbin-wxt-diff_2009_1106.zip, The previous post was lack of an example. Here I show an example http://www.geocities.jp/tmgpltwin/Files/Files.html#0037 0036 wxt_ex_20091104.png, 36,821 bytes, 2009-11-11, wxt terminal on gnuplot4.5(CVS) MinGW, an exaple in imagae.dem at the latest ChangeLog Date 2009-11-04 0037 wxt_ex_20091106.png, 40,086 bytes, 2009-11-11, wxt terminal on gnuplot4.5(CVS) MinGW, an exaple in imagae.dem at the latest ChangeLog Date 2009-11-06 0038 wxt_ex_20091106_2.png, 40,086 bytes, 2009-11-11, wxt terminal on gnuplot4.5(CVS) MinGW, an exaple in imagae.dem at the latest ChangeLog Date 2009-11-06 (After windows size expanded in y direction) I think that default window size is better to be expanded in y direction. Regards Tatsuro -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-11-11 04:20:18
|
Ethan Merritt wrote:
> Hmm. But it isn't "set var foo", it's "var = foo".
> So "unset" is misleading.
But we _do_ "show var foo", so "{set|unset} var foo" would match the
usual relation between show/set/unset rather more nicely than a new
command of its own.
> But there is a possible "gotcha". If you undefine a function that is
> called by another previously-defined function, bad things could happen.
None of those would be worse than the bad things already happening by
*) never defining a variable used by some function in the first place
*) never defining a function used by anther function in the first place
*) undefining a variable that was referenced by some function
*) never defining a variable used to set the value of another variable
*) never defining a function called to set the value of a variable
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-11-11 03:49:33
|
Ethan Merritt wrote: > 2) Here's the command I want to issue in the end: > > plot for [col=5:20] data using (column(4)) : (column(col) / statmax(col)) \ > title label(col) > > I doesn't work, because I can't figure out how to define a function statmax(col) > that retrieves the desired value. We don't have a user-level command in gnuplot > that will retrieve the value of a gnuplot variable by its string name. Maybe more to the point, we lack array variables, which are exactly what this really would call for. Collections you loop over to retrieve individual elements by numbers are just that: arrays. Whether they be emulated by fancy variable name construction from fragments, or a function taking the index as an argument, they're still just arrays. OTOH, arrays (a.k.a. vectors, and eventually matrices) would be one more step towards mimicking MatLab. Which we used to say we weren't going to do. Maybe all those quirks popping up are to warn us that this is not a direction we should continue walking in. |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-11-11 03:45:33
|
On Tuesday 10 November 2009, Philipp K. Janert wrote:
> On Tuesday 10 November 2009 07:10:51 pm you wrote:
> > On Tuesday 10 November 2009, Philipp K. Janert wrote:
> > > > > Since 4.0 we support string variables. That means wherever a string
> > > > > is required in the input command, it is acceptable to provide
> > > > > a string constant, a string variable, or a string-valued function.
> > >
> > > Although there is still a confusion: you write
> > > "where a string is required"
> > >
> > > In this example, no string is required.
> >
> > Of course a string is required. It is going to become the
> > first N characters of a longer string. How could it be anything
> > other than a string itself?
> >
> > > A bareword
> > > is required. It is your assumption that it should be
> > > a string. (And it is now a discussion item whether
> > > it should be a string - in which case the string needs
> > > to be handled properly, admittedly.)
> > >
> > > > > So
> > > > > A = "mydata"
> > > > > stats "file.dat" using 1 variable=A
> > > > >
> > > > > must expand A to find "mydata", not use it as an unmarked constant.
> > > > > All strings should be parsed using the routine try_to_get_string(),
> > > > > which handles the three cases.
> > > > > Also, normal commands do not use = signs.
> > > >
> > > > Good point on the string variable issue - I did not
> > > > think of that.
> > > >
> > > > There is a reason for the equality sign, though:
> > > > it indicates that the next token is the prefix -
> > > > because we have chosen to make the prefix
> > > > optional. The equality sign is a way of telling
> > > > gnuplot that the next token is a prefix, not the
> > > > next keyword.
> >
> > Not following you here.
> > The keyword itself can be optional - you don't have to provide a prefix.
>
> Ha! But :
> stats "file"
> and
> stats "file" var
> have different behavior!
>
> In the first case, no assignment to variables is made.
> Only in the second do we assign to variables. (Without
> a prefix.)
>
> So, how do I distinguish without the equality sign (or
> another keyword) between:
> stats "file" var noout
> and
> stats "file" var foo
try_to_get_string() will return NULL if noout is not a currently
defined string variable. If you define a string variable that is
the same as a keyword then yes, you could create a problem.
If that bothers you, you could explicitly test whether the next
token is "noout".
> Here, the first is supposed to assign to variables and
> not print to screen (keyword "noout"), whereas the former
> assigns to variables with prefix foo, but does not print to
> screen? To distinguish these cases, I need to tell gnuplot
> that the foo in the second cases "belongs to" var. The simplest
> way I could think of was to use the equality sign.
>
> > But if you include the keyword in your command, then the next token
> > must be a string. Where does the = sign come in?
> >
> > [maybe "prefix" is a better keyword than "variable"]
> >
> > > > (I admit that the equality sign is unusual and I did
> > > > hesitate a little. But it does provide a simple solution
> > > > to this particular problem.)
> > > >
> > > > I don't want to make the prefix mandatory. For
> > > > convenience, it seems that in many cases it won't
> > > > be needed.
> >
> > So let it default to an empty string.
Same answer as before, with an explicit default case:
char *prefix= NULL;
if (equals(c_token,"variable")) {
c_token++;
prefix = try_to_get_string();
}
if (!prefix)
prefix = gp_strdup("");
...
free(prefix);
|
|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 03:22:57
|
On Tuesday 10 November 2009 07:10:51 pm you wrote: > On Tuesday 10 November 2009, Philipp K. Janert wrote: > > > > Since 4.0 we support string variables. That means wherever a string > > > > is required in the input command, it is acceptable to provide > > > > a string constant, a string variable, or a string-valued function. > > > > Although there is still a confusion: you write > > "where a string is required" > > > > In this example, no string is required. > > Of course a string is required. It is going to become the > first N characters of a longer string. How could it be anything > other than a string itself? It's not a string as far as the gnuplot session is concerned. Here: plot "file" using 1:2 In this example, "file" is a string within the gnuplot session. But using is not a string in the same way - it's a keyword. Similarly: a = 1 Here, a is not a string within the gnuplot session. It's a variable name. In the same way, our prefix is not a string within the gnuplot session. It's an (unquoted) bareword. The best way to see this is that there is no need to quote it and any quotes are not stripped out. (This is a totally different question whether any of this is IMPLEMENTED as a C string. Of course it is. But that's not what I am talking about.) > > > A bareword > > is required. It is your assumption that it should be > > a string. (And it is now a discussion item whether > > it should be a string - in which case the string needs > > to be handled properly, admittedly.) > > > > > > So > > > > A = "mydata" > > > > stats "file.dat" using 1 variable=A > > > > > > > > must expand A to find "mydata", not use it as an unmarked constant. > > > > All strings should be parsed using the routine try_to_get_string(), > > > > which handles the three cases. > > > > Also, normal commands do not use = signs. > > > > > > Good point on the string variable issue - I did not > > > think of that. > > > > > > There is a reason for the equality sign, though: > > > it indicates that the next token is the prefix - > > > because we have chosen to make the prefix > > > optional. The equality sign is a way of telling > > > gnuplot that the next token is a prefix, not the > > > next keyword. > > Not following you here. > The keyword itself can be optional - you don't have to provide a prefix. Ha! But : stats "file" and stats "file" var have different behavior! In the first case, no assignment to variables is made. Only in the second do we assign to variables. (Without a prefix.) So, how do I distinguish without the equality sign (or another keyword) between: stats "file" var noout and stats "file" var foo Here, the first is supposed to assign to variables and not print to screen (keyword "noout"), whereas the former assigns to variables with prefix foo, but does not print to screen? To distinguish these cases, I need to tell gnuplot that the foo in the second cases "belongs to" var. The simplest way I could think of was to use the equality sign. > But if you include the keyword in your command, then the next token > must be a string. Where does the = sign come in? > > [maybe "prefix" is a better keyword than "variable"] > > > > (I admit that the equality sign is unusual and I did > > > hesitate a little. But it does provide a simple solution > > > to this particular problem.) > > > > > > I don't want to make the prefix mandatory. For > > > convenience, it seems that in many cases it won't > > > be needed. > > So let it default to an empty string. |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-11-11 03:11:06
|
On Tuesday 10 November 2009, Philipp K. Janert wrote: > > > > > > Since 4.0 we support string variables. That means wherever a string > > > is required in the input command, it is acceptable to provide > > > a string constant, a string variable, or a string-valued function. > > Although there is still a confusion: you write > "where a string is required" > > In this example, no string is required. Of course a string is required. It is going to become the first N characters of a longer string. How could it be anything other than a string itself? > A bareword > is required. It is your assumption that it should be > a string. (And it is now a discussion item whether > it should be a string - in which case the string needs > to be handled properly, admittedly.) > > > > > > > So > > > A = "mydata" > > > stats "file.dat" using 1 variable=A > > > > > > must expand A to find "mydata", not use it as an unmarked constant. > > > All strings should be parsed using the routine try_to_get_string(), > > > which handles the three cases. > > > Also, normal commands do not use = signs. > > > > Good point on the string variable issue - I did not > > think of that. > > > > There is a reason for the equality sign, though: > > it indicates that the next token is the prefix - > > because we have chosen to make the prefix > > optional. The equality sign is a way of telling > > gnuplot that the next token is a prefix, not the > > next keyword. Not following you here. The keyword itself can be optional - you don't have to provide a prefix. But if you include the keyword in your command, then the next token must be a string. Where does the = sign come in? [maybe "prefix" is a better keyword than "variable"] > > (I admit that the equality sign is unusual and I did > > hesitate a little. But it does provide a simple solution > > to this particular problem.) > > > > I don't want to make the prefix mandatory. For > > convenience, it seems that in many cases it won't > > be needed. So let it default to an empty string. |
|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 02:31:34
|
On Tuesday 10 November 2009 06:22:17 pm Philipp K. Janert wrote: > > > The quotes are your addition. We don't expect them, > > > but we don't actively remove them. Maybe we should - > > > I admit that there is a user expectation that "there should > > > be quotes". > > > > Since 4.0 we support string variables. That means wherever a string > > is required in the input command, it is acceptable to provide > > a string constant, a string variable, or a string-valued function. Although there is still a confusion: you write "where a string is required" In this example, no string is required. A bareword is required. It is your assumption that it should be a string. (And it is now a discussion item whether it should be a string - in which case the string needs to be handled properly, admittedly.) > > > > So > > A = "mydata" > > stats "file.dat" using 1 variable=A > > > > must expand A to find "mydata", not use it as an unmarked constant. > > All strings should be parsed using the routine try_to_get_string(), > > which handles the three cases. > > Also, normal commands do not use = signs. > > Good point on the string variable issue - I did not > think of that. > > There is a reason for the equality sign, though: > it indicates that the next token is the prefix - > because we have chosen to make the prefix > optional. The equality sign is a way of telling > gnuplot that the next token is a prefix, not the > next keyword. > > (I admit that the equality sign is unusual and I did > hesitate a little. But it does provide a simple solution > to this particular problem.) > > I don't want to make the prefix mandatory. For > convenience, it seems that in many cases it won't > be needed. > > --------------------------------------------------------------------------- >--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - and > focus on what you do best, core application coding. Discover what's new > with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 02:22:40
|
> > The quotes are your addition. We don't expect them, > > but we don't actively remove them. Maybe we should - > > I admit that there is a user expectation that "there should > > be quotes". > > Since 4.0 we support string variables. That means wherever a string > is required in the input command, it is acceptable to provide > a string constant, a string variable, or a string-valued function. > > So > A = "mydata" > stats "file.dat" using 1 variable=A > > must expand A to find "mydata", not use it as an unmarked constant. > All strings should be parsed using the routine try_to_get_string(), > which handles the three cases. > Also, normal commands do not use = signs. Good point on the string variable issue - I did not think of that. There is a reason for the equality sign, though: it indicates that the next token is the prefix - because we have chosen to make the prefix optional. The equality sign is a way of telling gnuplot that the next token is a prefix, not the next keyword. (I admit that the equality sign is unusual and I did hesitate a little. But it does provide a simple solution to this particular problem.) I don't want to make the prefix mandatory. For convenience, it seems that in many cases it won't be needed. |
|
From: Ethan M. <merritt@u.washington.edu> - 2009-11-11 02:12:49
|
On Tuesday 10 November 2009, Philipp K. Janert wrote:
> > 1) The syntax
> > stats data using 20 variable="col20"
> > did not do at all what I expected. I expected to get variables
> > col20_max_x and so on,
> > but what I actually got was variables with embedded quote marks:
> > "col20"max_x
> > Trying to embed this in a plot command was a pain.
>
> The quotes are your addition. We don't expect them,
> but we don't actively remove them. Maybe we should -
> I admit that there is a user expectation that "there should
> be quotes".
Since 4.0 we support string variables. That means wherever a string
is required in the input command, it is acceptable to provide
a string constant, a string variable, or a string-valued function.
So
A = "mydata"
stats "file.dat" using 1 variable=A
must expand A to find "mydata", not use it as an unmarked constant.
All strings should be parsed using the routine try_to_get_string(),
which handles the three cases.
Also, normal commands do not use = signs.
So the source code should be something like:
char *prefix= NULL;
if (equals(c_token,"variable")) {
c_token++;
prefix = try_to_get_string();
}
> > 2) Here's the command I want to issue in the end:
> >
> > plot for [col=5:20] data using (column(4)) : \
> > column(col) / statmax(col))
> >
> > It doesn't work, because I can't figure out how to define a function
> > statmax(col) that retrieves the desired value. We don't have a user-level
> > command in gnuplot that will retrieve the value of a gnuplot variable by
> > its string name. Yesterday I had to forego the iterator and type in a
> > 16-line plot command instead.
>
> If I see this correctly, mostly you would like to add
> support for iteration into the stats command? This
> is certainly something we can think about.
Iteration is a major reason. But the same problem arises whenever you
have constructed the variable name via a script. How do you insert the
value of that variable back into another command?
> >
> > So I want to request a different mechanism for storing and retrieving the
> > stats values. You've seen this before, but here it comes again:
> > I don't want dozens of variables to be created by every stats command,
> > because they are too hard to retrieve inside a script. Instead I want each
> > stats command to load a structure, and I want a set of functions that
> > retrieve the previously calculated stats values, indexed by name. If you
> > want to load a named variable from one of the stats values, fine. Just say
> > Run5_xmin = statmin("Run5")
> > That will persist across a save/load sequence, for instance, even though
> > the internal stats structures will not.
>
> Why is that goodness? I don't understand the
> motivation here.
I thought this was something you wanted. You said gnuplot should not
become statefull, which I take to mean that save/load should get you
back to where you were without having to replay the whole history of
commands.
> Why do you want to go the
> roundabout way (and force the user through
> this detour) of accessing variables through
> functions, rather than as variables?
Because, as I noted above, you cannot currently access their value
by name in a script. I agree there are other possible solutions to
the problem.
|
|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 02:12:24
|
> > > > Yeah, we do. You can > > undefine VARNAME > > But it doesn't take wildcards. > > > I tend to prefer "unset" over "reset" - simply > because I am already used to "unset" taking > arguments, whereas "reset" does not. > I will correct myself. If we already have the ability to undefine a variable, then we should use that, rather than introducing an additional method. How about: undefine foo* undefine *foo undefine foo*bar with the obvious meaning of the wildcard? |
|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 00:57:57
|
On Tuesday 10 November 2009 01:32:06 pm Ethan Merritt wrote:
> On Tuesday 10 November 2009 13:00:16 Hans-Bernhard Bröker wrote:
> > This one deserves generalization. Unless I missed something, we
> > currently don't have a command to get rid of any variable (short of
> > 'exit' and starting a new session),
>
> Yeah, we do. You can
> undefine VARNAME
> But it doesn't take wildcards.
Side question: is that behavior documented
somewhere? I did not know about it, either.
>
> Perhaps it should do the same as the "show var PREFIX" command,
> and treat the string as a leading prefix to the full variable name.
That's what we were thinking. (I will admit that
I am reluctant to implement a regular expression
parser. It seems like overkill.)
I tend to prefer "unset" over "reset" - simply
because I am already used to "unset" taking
arguments, whereas "reset" does not.
>
> > whereas the number of variables we
> > have gnuplot create by itself seems to be increasing all the time (first
> > "fit" results, then GPVAL_*, now possibly GPSTAT_*).
> >
> > I think a generic
> >
> > unset variable {<name>| pattern <regex> | fit | stats}
> >
> > command would be in order. I would prefer 'unset' over 'reset' here
> > because it matches 'show variables' a bit better than 'reset'.
>
> Hmm. But it isn't "set var foo", it's "var = foo".
> So "unset" is misleading.
>
> > It should probably be extended to user-defined functions, too.
>
> Yes. Good point.
>
> But there is a possible "gotcha". If you undefine a function that is
> called by another previously-defined function, bad things could happen.
>
> > And maybe
> > we should even allow
> >
> > set variable <var>=<expr>
> > and
> > set function <name>(<arguments>)=<expression>
> >
> > as an optional syntax instead of the usual <var>=<expr> etc., too.
>
> Yes, that would be the other way to justify use of "unset" :-)
> But it seems a more drastic change than extending "undefine".
|
|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 00:54:19
|
On Tuesday 10 November 2009 01:00:16 pm Hans-Bernhard Bröker wrote:
> Ethan Merritt wrote:
> [...]
>
> > For one thing, we don't currently have any easy way to undefine all
> > these variables. "show var GPSTAT" would show all of them, but
> > "undefine GPSTAT" doesn't get rid of them. That's fixable, I suppose,
> > but I don't like the variables for another reason...
> >
> > 4) I suggest adding a mechanism for explicitly clearing out the set of
> > stats calculations. One obvious syntax is
> > reset stats
>
> This one deserves generalization. Unless I missed something, we
> currently don't have a command to get rid of any variable (short of
> 'exit' and starting a new session), whereas the number of variables we
> have gnuplot create by itself seems to be increasing all the time (first
> "fit" results, then GPVAL_*, now possibly GPSTAT_*).
>
> I think a generic
>
> unset variable {<name>| pattern <regex> | fit | stats}
>
I fully agree. Zoltan and I discussed this and even
implemented a function that will do that. We just
don't currently expose it as a command - partially
because we did not want to add yet another user-level
command.
But the idea of overloading unset for this purpose is
a good one.
> command would be in order. I would prefer 'unset' over 'reset' here
> because it matches 'show variables' a bit better than 'reset'. It
> should probably be extended to user-defined functions, too. And maybe
> we should even allow
>
> set variable <var>=<expr>
> and
> set function <name>(<arguments>)=<expression>
>
> as an optional syntax instead of the usual <var>=<expr> etc., too.
>
>
> ---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment - and
> focus on what you do best, core application coding. Discover what's new
> with Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
|
|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 00:52:36
|
I was out all day so I am joining this thread a little later.
>
> I had occasion to use your patch in the real world yesterday.
> I was making figures from data stored in a csv file, with 16 columns
> of data each corresponding to one experiment. I wanted to normalize
> the curves so that each one filled the range [0:1] when superimposed.
Thanks for giving it a "real-world whirl".
>
> set datafile separator ','
> data = "My Data File"
>
> stats data using 5 variable="col5"
> stats data using 6 variable="col6"
> ...
> stats data using 20 variable="col20"
>
> plot ....
>
> All great.
> But having to type 16 separate commands and then hunt for the
> results to construct a single complicated plotting command was tedious.
> So I have several specific suggestions for improvement.
>
> 1) The syntax
> stats data using 20 variable="col20"
> did not do at all what I expected. I expected to get variables
> col20_max_x and so on,
> but what I actually got was variables with embedded quote marks:
> "col20"max_x
> Trying to embed this in a plot command was a pain.
The quotes are your addition. We don't expect them,
but we don't actively remove them. Maybe we should -
I admit that there is a user expectation that "there should
be quotes". (I know, because I found myself adding them.)
On the other hand, I don't want to have a command that is
too smart (removing quotes silently, but leaving everything
else alone...)
>
> I suggest that the syntax should be
> stats data using <foo> name <string>
> and should produce variables named
> GPSTAT_string_max_x
> GPSTAT_string_npoints (NB: not ...nrecords)
> Except that I really don't like this mechanism very much.
Zortan and I discussed this. Our idea was to keep the
variable names short and user-friendly. The GPSTAT_
prefix really does not help very much. If users want to
avoid polluting their own namespace, we give them the
ability to choose their own prefixes.
>
> For one thing, we don't currently have any easy way to undefine all
> these variables. "show var GPSTAT" would show all of them, but
> "undefine GPSTAT" doesn't get rid of them. That's fixable, I suppose,
> but I don't like the variables for another reason...
>
> 2) Here's the command I want to issue in the end:
>
> plot for [col=5:20] data using (column(4)) : (column(col) /
> statmax(col)) \ title label(col)
>
> I doesn't work, because I can't figure out how to define a function
> statmax(col) that retrieves the desired value. We don't have a user-level
> command in gnuplot that will retrieve the value of a gnuplot variable by
> its string name. Yesterday I had to forego the iterator and type in a
> 16-line plot command instead.
If I see this correctly, mostly you would like to add
support for iteration into the stats command? This
is certainly something we can think about.
>
> So I want to request a different mechanism for storing and retrieving the
> stats values. You've seen this before, but here it comes again:
> I don't want dozens of variables to be created by every stats command,
> because they are too hard to retrieve inside a script. Instead I want each
> stats command to load a structure, and I want a set of functions that
> retrieve the previously calculated stats values, indexed by name. If you
> want to load a named variable from one of the stats values, fine. Just say
> Run5_xmin = statmin("Run5")
> That will persist across a save/load sequence, for instance, even though
> the internal stats structures will not.
Why is that goodness? I don't understand the
motivation here. Why do you want to go the
roundabout way (and force the user through
this detour) of accessing variables through
functions, rather than as variables?
The "prefix" that we offer for variable names
serves exactly the same purpose as the data
structure that you refer to: a logical grouping.
>
> 3) For convenience, the stats command should accept an iterator.
> My plots yesterday could then have been created in two commands:
>
> stats for [col=5:20] data using col name "Run".col
> plot for [col=5:20] data using (column(4)) : \
> (column(col) / statmax("Run".col)) \
> title sprintf("Run%d",col)
>
> Note that "Run".col is the same as sprintf("Run%d",col).
>
> 4) I suggest adding a mechanism for explicitly clearing out the set of
> stats calculations. One obvious syntax is
> reset stats
Yes, and in fact Zoltan and I have implemented a
function to do that, but not hooked it up.
|
|
From: Ethan M. <merritt@u.washington.edu> - 2009-11-10 21:32:26
|
On Tuesday 10 November 2009 13:00:16 Hans-Bernhard Bröker wrote:
> This one deserves generalization. Unless I missed something, we
> currently don't have a command to get rid of any variable (short of
> 'exit' and starting a new session),
Yeah, we do. You can
undefine VARNAME
But it doesn't take wildcards.
Perhaps it should do the same as the "show var PREFIX" command,
and treat the string as a leading prefix to the full variable name.
> whereas the number of variables we
> have gnuplot create by itself seems to be increasing all the time (first
> "fit" results, then GPVAL_*, now possibly GPSTAT_*).
>
> I think a generic
>
> unset variable {<name>| pattern <regex> | fit | stats}
>
> command would be in order. I would prefer 'unset' over 'reset' here
> because it matches 'show variables' a bit better than 'reset'.
Hmm. But it isn't "set var foo", it's "var = foo".
So "unset" is misleading.
> It should probably be extended to user-defined functions, too.
Yes. Good point.
But there is a possible "gotcha". If you undefine a function that is
called by another previously-defined function, bad things could happen.
> And maybe
> we should even allow
>
> set variable <var>=<expr>
> and
> set function <name>(<arguments>)=<expression>
>
> as an optional syntax instead of the usual <var>=<expr> etc., too.
Yes, that would be the other way to justify use of "unset" :-)
But it seems a more drastic change than extending "undefine".
--
Ethan A Merritt
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-11-10 21:00:40
|
Ethan Merritt wrote:
[...]
> For one thing, we don't currently have any easy way to undefine all
> these variables. "show var GPSTAT" would show all of them, but
> "undefine GPSTAT" doesn't get rid of them. That's fixable, I suppose,
> but I don't like the variables for another reason...
> 4) I suggest adding a mechanism for explicitly clearing out the set of
> stats calculations. One obvious syntax is
> reset stats
This one deserves generalization. Unless I missed something, we
currently don't have a command to get rid of any variable (short of
'exit' and starting a new session), whereas the number of variables we
have gnuplot create by itself seems to be increasing all the time (first
"fit" results, then GPVAL_*, now possibly GPSTAT_*).
I think a generic
unset variable {<name>| pattern <regex> | fit | stats}
command would be in order. I would prefer 'unset' over 'reset' here
because it matches 'show variables' a bit better than 'reset'. It
should probably be extended to user-defined functions, too. And maybe
we should even allow
set variable <var>=<expr>
and
set function <name>(<arguments>)=<expression>
as an optional syntax instead of the usual <var>=<expr> etc., too.
|
|
From: Ethan M. <merritt@u.washington.edu> - 2009-11-10 20:35:26
|
On Sunday 08 November 2009 12:17:50 Philipp K. Janert wrote: > For the last few weeks, Zoltán and I have been > working on a command that calculates the most > important such quantities from a data file, displays > them, and (optionally) assigns them to variables in > the current gnuplot session. > > You can see some examples of what you can do > with this command here: > http://www.phyast.pitt.edu/~zov1/gnuplot/patch/stats.html > and you can read the full documentation here: > http://www.phyast.pitt.edu/~zov1/gnuplot/patch/stats_help.html > > I uploaded a patch with our changes to sourceforge. > > We'd like to hear feedback and suggestions. A nice starting point for development. > Is this useful? Are we missing anything? I had occasion to use your patch in the real world yesterday. I was making figures from data stored in a csv file, with 16 columns of data each corresponding to one experiment. I wanted to normalize the curves so that each one filled the range [0:1] when superimposed. set datafile separator ',' data = "My Data File" stats data using 5 variable="col5" stats data using 6 variable="col6" ... stats data using 20 variable="col20" plot .... All great. But having to type 16 separate commands and then hunt for the results to construct a single complicated plotting command was tedious. So I have several specific suggestions for improvement. 1) The syntax stats data using 20 variable="col20" did not do at all what I expected. I expected to get variables col20_max_x and so on, but what I actually got was variables with embedded quote marks: "col20"max_x Trying to embed this in a plot command was a pain. I suggest that the syntax should be stats data using <foo> name <string> and should produce variables named GPSTAT_string_max_x GPSTAT_string_npoints (NB: not ...nrecords) Except that I really don't like this mechanism very much. For one thing, we don't currently have any easy way to undefine all these variables. "show var GPSTAT" would show all of them, but "undefine GPSTAT" doesn't get rid of them. That's fixable, I suppose, but I don't like the variables for another reason... 2) Here's the command I want to issue in the end: plot for [col=5:20] data using (column(4)) : (column(col) / statmax(col)) \ title label(col) I doesn't work, because I can't figure out how to define a function statmax(col) that retrieves the desired value. We don't have a user-level command in gnuplot that will retrieve the value of a gnuplot variable by its string name. Yesterday I had to forego the iterator and type in a 16-line plot command instead. So I want to request a different mechanism for storing and retrieving the stats values. You've seen this before, but here it comes again: I don't want dozens of variables to be created by every stats command, because they are too hard to retrieve inside a script. Instead I want each stats command to load a structure, and I want a set of functions that retrieve the previously calculated stats values, indexed by name. If you want to load a named variable from one of the stats values, fine. Just say Run5_xmin = statmin("Run5") That will persist across a save/load sequence, for instance, even though the internal stats structures will not. 3) For convenience, the stats command should accept an iterator. My plots yesterday could then have been created in two commands: stats for [col=5:20] data using col name "Run".col plot for [col=5:20] data using (column(4)) : \ (column(col) / statmax("Run".col)) \ title sprintf("Run%d",col) Note that "Run".col is the same as sprintf("Run%d",col). 4) I suggest adding a mechanism for explicitly clearing out the set of stats calculations. One obvious syntax is reset stats -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |
|
From: Tatsuro M. <tma...@ya...> - 2009-11-10 14:55:54
|
Hello --- Jie Wu wrote: > Hi Tatsuro, > > The solution makes that warning disappear, setting terminal to png spands a > bit of time of CPU at first launch. Thank you.:) OK. I am glad my reply being help for you. In addition, set the GDFONTPATH environmental variable. please see 'help gd'. I set it to C:\WINDOWS\Fonts. > PS: do you have time to write down main steps of your building gnuplot under > MinGW and send it to me? I want to learn the building skills. Instruction is now under construction. It will upload it to my web if it is finished. However I have been occupied by university work, I cannot say when it will be finished at present. Regards Tatsuro > Regards > Jie > > 2009/11/10 Tatsuro MATSUOKA <tma...@ya...> > > > Hello > > > > I have find a solution. > > I googled and found > > http://lists.freedesktop.org/archives/fontconfig/2007-October/002685.html > > > > and I looked into libfontconfig-1.dll and found a string 'FONTCONFIG_PATH' > > > > cmd prompt> set > > > > FONTCONFIG_PATH=D:\usr\Tatsu\mingwhome\gnuplotcvs\test\gp45-winbin\gnuplot\bin\etc\fonts > > cmd prompt> gnuplot > > > > ******************* > > Terminal type set to 'windows' > > gnuplot> set term png > > Terminal type set to 'png' > > Options are 'nocrop font arial 12 size 640,480 ' > > ****************** > > Error message: > > > > fontconfig: Couldn't retrieve font file name. when opening font "arial", > > using internal non-scalable > > font > > > > is disappeared. > > > > BTW > > It is useful set the environmental variable 'FONTCONFIG_PATH' at the > > Control Panel. > > > > Please google by keyword ' environmental variable windows XP' to set it on > > the Control Panel. > > > > Anyway thanks to your report. > > > > Regards > > > > Tatsuro > > --- Tatsuro MATSUOKA wrote: > > > > > Hello Jie Wu > > > > > > cc. gnu...@li... (cc. to there as a reference) > > > > > > Thank you for your report. > > > This might be an error around fontconfig file and its path. > > > I do not have enough time to fully fix it. > > > > > > However, please try temporary treatment in the following > > > > > > > > > *********************** > > > Please use > > > > > > http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin > > > Please download > > > gp45-winbin_2009_1106.zip > > > > > > Please copy all files and folders in gp45-winbin\gnuplot\bin to > > "C:\Program Files\Gnuplot4.5" > > > > > > and execute gnuplot.exe, wgnuplot.exe wgnuplot_pipes.exe there. > > > > > > "C:\Program Files\Gnuplot4.5" is the install folder at building of > > gnuplot. > > > *********** > > > Hope the above helps. > > > > > > > > > Perhaps etc/fonts/font.conf should be placed on "C:\Program > > Files\Gnuplot4.5" and > > > gnuplot binaries should be placed there. > > > > > > Perhaps there are other solutions but I cannot find at present. > > > > > > Regards > > > > > > Tatsuro > > > > > > > > > --- Jie Wu wrote: > > > > > > > > > > > > > Hello Dr. Tatsuro MATSUOKA, > > > > > > > > I am using MinGW version of gnuplot built by you. I installed the file > > > > unzipped from the package > > > > gp45-winbin.zip< > > http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin/gp45-winbin.zip>. > > > > Fonts setting works well while terminal set to windows. when i set it > > to > > > > png, wgnuplot returns warning message below: > > > > > > > > gnuplot> set term png > > > > Terminal type set to 'png' > > > > fontconfig: Couldn't retrieve font file name. when opening font > > "arial", > > > > using i > > > > nternal non-scalable font > > > > Options are 'nocrop medium size 640,480 ' > > > > > > > > fontpath is: > > > > gnuplot> show fontpath > > > > > > > > fontpath is > > > > system fontpath is "C:\WINDOWS\fonts" > > > > > > > > I tried to set user-wide environment variable 'GDFONTPATH' to > > > > 'C:\windows\fonts', but that didn't work also. > > > > > > > > Windows XP SP3 is running on my box. What configurations did i miss or > > how > > > > can i solve the problem? Any help will be appreciated, and many thanks > > for > > > > your contributions about gnuplot! > > > > > > > > > > > > sincerely > > > > a gnuplot user > > > > > > > > > > > > > -------------------------------------- > > > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > > > http://pr.mail.yahoo.co.jp/gyao/ > > > > > > > > ------------------------------------------------------------------------------ > > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day > > > trial. Simplify your report design, integration and deployment - and > > focus on > > > what you do best, core application coding. Discover what's new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > gnuplot-beta mailing list > > > gnu...@li... > > > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > > > > > > > > > -------------------------------------- > > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > > http://pr.mail.yahoo.co.jp/gyao/ > > > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ |
|
From: Tatsuro M. <tma...@ya...> - 2009-11-10 11:26:09
|
Hello I have find a solution. I googled and found http://lists.freedesktop.org/archives/fontconfig/2007-October/002685.html and I looked into libfontconfig-1.dll and found a string 'FONTCONFIG_PATH' cmd prompt> set FONTCONFIG_PATH=D:\usr\Tatsu\mingwhome\gnuplotcvs\test\gp45-winbin\gnuplot\bin\etc\fonts cmd prompt> gnuplot ******************* Terminal type set to 'windows' gnuplot> set term png Terminal type set to 'png' Options are 'nocrop font arial 12 size 640,480 ' ****************** Error message: fontconfig: Couldn't retrieve font file name. when opening font "arial", using internal non-scalable font is disappeared. BTW It is useful set the environmental variable 'FONTCONFIG_PATH' at the Control Panel. Please google by keyword ' environmental variable windows XP' to set it on the Control Panel. Anyway thanks to your report. Regards Tatsuro --- Tatsuro MATSUOKA wrote: > Hello Jie Wu > > cc. gnu...@li... (cc. to there as a reference) > > Thank you for your report. > This might be an error around fontconfig file and its path. > I do not have enough time to fully fix it. > > However, please try temporary treatment in the following > > > *********************** > Please use > > http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin > Please download > gp45-winbin_2009_1106.zip > > Please copy all files and folders in gp45-winbin\gnuplot\bin to "C:\Program Files\Gnuplot4.5" > > and execute gnuplot.exe, wgnuplot.exe wgnuplot_pipes.exe there. > > "C:\Program Files\Gnuplot4.5" is the install folder at building of gnuplot. > *********** > Hope the above helps. > > > Perhaps etc/fonts/font.conf should be placed on "C:\Program Files\Gnuplot4.5" and > gnuplot binaries should be placed there. > > Perhaps there are other solutions but I cannot find at present. > > Regards > > Tatsuro > > > --- Jie Wu wrote: > > > > > Hello Dr. Tatsuro MATSUOKA, > > > > I am using MinGW version of gnuplot built by you. I installed the file > > unzipped from the package > > gp45-winbin.zip<http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin/gp45-winbin.zip>. > > Fonts setting works well while terminal set to windows. when i set it to > > png, wgnuplot returns warning message below: > > > > gnuplot> set term png > > Terminal type set to 'png' > > fontconfig: Couldn't retrieve font file name. when opening font "arial", > > using i > > nternal non-scalable font > > Options are 'nocrop medium size 640,480 ' > > > > fontpath is: > > gnuplot> show fontpath > > > > fontpath is > > system fontpath is "C:\WINDOWS\fonts" > > > > I tried to set user-wide environment variable 'GDFONTPATH' to > > 'C:\windows\fonts', but that didn't work also. > > > > Windows XP SP3 is running on my box. What configurations did i miss or how > > can i solve the problem? Any help will be appreciated, and many thanks for > > your contributions about gnuplot! > > > > > > sincerely > > a gnuplot user > > > > > -------------------------------------- > GyaO! - Anime, Dramas, Movies, and Music videos [FREE] > http://pr.mail.yahoo.co.jp/gyao/ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ |
|
From: Tatsuro M. <tma...@ya...> - 2009-11-10 10:29:33
|
Hello Jie Wu cc. gnu...@li... (cc. to there as a reference) Thank you for your report. This might be an error around fontconfig file and its path. I do not have enough time to fully fix it. However, please try temporary treatment in the following *********************** Please use http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin Please download gp45-winbin_2009_1106.zip Please copy all files and folders in gp45-winbin\gnuplot\bin to "C:\Program Files\Gnuplot4.5" and execute gnuplot.exe, wgnuplot.exe wgnuplot_pipes.exe there. "C:\Program Files\Gnuplot4.5" is the install folder at building of gnuplot. *********** Hope the above helps. Perhaps etc/fonts/font.conf should be placed on "C:\Program Files\Gnuplot4.5" and gnuplot binaries should be placed there. Perhaps there are other solutions but I cannot find at present. Regards Tatsuro --- Jie Wu wrote: > Hello Dr. Tatsuro MATSUOKA, > > I am using MinGW version of gnuplot built by you. I installed the file > unzipped from the package > gp45-winbin.zip<http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin/gp45-winbin.zip>. > Fonts setting works well while terminal set to windows. when i set it to > png, wgnuplot returns warning message below: > > gnuplot> set term png > Terminal type set to 'png' > fontconfig: Couldn't retrieve font file name. when opening font "arial", > using i > nternal non-scalable font > Options are 'nocrop medium size 640,480 ' > > fontpath is: > gnuplot> show fontpath > > fontpath is > system fontpath is "C:\WINDOWS\fonts" > > I tried to set user-wide environment variable 'GDFONTPATH' to > 'C:\windows\fonts', but that didn't work also. > > Windows XP SP3 is running on my box. What configurations did i miss or how > can i solve the problem? Any help will be appreciated, and many thanks for > your contributions about gnuplot! > > > sincerely > a gnuplot user > -------------------------------------- GyaO! - Anime, Dramas, Movies, and Music videos [FREE] http://pr.mail.yahoo.co.jp/gyao/ |
|
From: ZoltánVörös <zv...@gm...> - 2009-11-09 20:46:59
|
Tait <gnuplot-devel <at> t41t.com> writes: > > Mean as used here seems to be the arithmetic mean. What about the geometric > mean? (Or harmonic mean, or any of the other types of averages?) Harmonic mean is easily done with the present stats command as stats 'foo' u 1:(1.0/$2) noout var harmonic = records / sum_y > I have always addressed these sorts of issues by using a tool that's > designed for manipulating arbitrary data sets (Perl in my case, but there > are others). This has the advantage of providing infinite flexibility, That is sort of a platform-dependent solution for a problem that comes up too often, but Philipp has already discussed this issue at length, I believe. > I wonder, rather than providing a restricted set of pre-defined functions, > is there a way to allow the user to provide a formula or expression that > will be applied across multiple rows? Then the user could calculate the > mean (whatever that means to their application) or standard deviation or > some other arbitrary metric on their own. stats 'foo' u ($2*$3+cos($4)) should work as it is, if that is what you meant. A fairly large set of quantities can be calculated using the variables that are produced by stats, if the proper function is applied to the columns beforehand. Best, Zoltán |
|
From: ZoltánVörös <zv...@gm...> - 2009-11-09 20:35:20
|
Philipp K. Janert <janert <at> ieee.org> writes: > > On Monday 09 November 2009 07:29:10 am Jonathan Thornburg wrote: > > On Mon, 9 Nov 2009, Philipp K. Janert wrote: > > > There was a question whether the stats command > > > works on "a sample or a population". Neither! > > > It works on a a DATA FILE, like the rest of gnuplot. > > > (And therefore there is no ambiguity.) > > > > I'm sorry, but I still don't know whether this means it uses N or N-1 > > weighting. I would find it useful to have *both* printed out -- each is > > valuable in different circumstances. > > I see. That makes more sense. > > Currently, the stats command divides by N. I don't really see the difference: since the sum of whatever quantity you want is reported, as is the number of records, you can define either sum_x / records or sum_x / (records-1). Similar argument applies to the standard deviations and the like. I don't want to add new variables for quantities that can easily be calculated from existing ones. Best, Zoltán |
|
From: Philipp K. J. <ja...@ie...> - 2009-11-09 15:50:11
|
On Monday 09 November 2009 07:29:10 am Jonathan Thornburg wrote: > On Mon, 9 Nov 2009, Philipp K. Janert wrote: > > There was a question whether the stats command > > works on "a sample or a population". Neither! > > It works on a a DATA FILE, like the rest of gnuplot. > > (And therefore there is no ambiguity.) > > I'm sorry, but I still don't know whether this means it uses N or N-1 > weighting. I would find it useful to have *both* printed out -- each is > valuable in different circumstances. I see. That makes more sense. Currently, the stats command divides by N. |