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: Hans-Bernhard B. <br...@ph...> - 2004-10-21 17:53:18
|
On Wed, 20 Oct 2004, Harald Harders wrote: > On Tue, 19 Oct 2004, Ethan Merritt wrote: > > > My expectation for *.eps files is that they will by default be small enough > > to use as an inset figure within an normal page. So I would not like this > > to change. > > Ah, it seems I have not been clear enough. I do not want to change the > size of the postscript terminal (neither in ps nor in eps mode). At the > moment, the epslatex and ps(la)tex terminals use different sizes than the > eps mode of the postscript terminal. Are you sure of that? What are the sizes, actually? I seem to remember them to be 5x3 inches for both pslatex and 'post eps'; not sure about epslatex though. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |
|
From: Daniel J S. <dan...@ie...> - 2004-10-21 17:27:51
|
Ethan Merritt wrote: >On Thursday 21 October 2004 10:08 am, Per Persson wrote: > > >>Nobody is questioning your ability to type ./configure;make but some >>users prefer a double-clickable standard installer. >>In case I choose not to devote time to this project anymore, >>at least there would be a way to create an installer for Mac OS X >>from a point release by running a script. >> >> > >How stable is this standard installer? > This is what I was going to ask. My faith in GUI installers isn't strong. But I hear plenty of good things about OS X, so... Dan |
|
From: Daniel J S. <dan...@ie...> - 2004-10-21 17:20:11
|
Per Persson wrote: > Maybe I missed something, but I thought that the reason for branching > the sources was that there would be a bugfix release of gnuplot 4.0 at > some point in the future. > My question was if changing the default terminal was something that > you'd like to see in a bugfix release. I haven't been following, sorry. How does this default work? It seems to me that a "default terminal" is something that the user should be able to configure without having to recompile anything. I know there is some reluctance to add default mechanisms to gnuplot. Is there some way already of automatically loading a file at startup? For example, an environment variable GNUPLOTLOADFILE = "/myhomedirectory/.gnuplotstartup" or some such thing. (And then add command line documentation under "help load" or "help defaults" about building a startup load file.) Dan |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-21 17:16:38
|
On Thursday 21 October 2004 10:08 am, Per Persson wrote: > > Nobody is questioning your ability to type ./configure;make but some > users prefer a double-clickable standard installer. > In case I choose not to devote time to this project anymore, > at least there would be a way to create an installer for Mac OS X > from a point release by running a script. How stable is this standard installer? If no one maintains the OSX-specific files in your new directory, will we risk losing the benefit of your work because the installer files themselves no longer function under Tiger or its successor? I'm not objecting to including it, but I'd like a better feel of how much benefit it is to future work. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Per P. <per...@ma...> - 2004-10-21 17:08:20
|
On Oct 21, 2004, at 18:08, Ethan Merritt wrote: > On Thursday 21 October 2004 05:00 am, Per Persson wrote: >> Hi, >> I've cleaned up my distro script for Mac OS X and would like to add it >> and it's supporting files to CVS. >> >> I suppose the top dir rather than src/ is the appropriate location for >> a directory with the files? >> Any objections to naming that dir "MacOSXDistro"? > > I'm not objecting, at least not yet, but I'm curious exactly what files > these are. I managed to install gnuplot on OSX directly from the > existing > tree, and I am a total novice user to OSX. What is needed beyond > what is there already? I'm talking about a script and supporting files to create the binary installer and documentation in PDF that people right now are downloading from SF. Nobody is questioning your ability to type ./configure;make but some users prefer a double-clickable standard installer. In case I choose not to devote time to this project anymore, at least there would be a way to create an installer for Mac OS X from a point release by running a script. This was previously discussed: On Oct 2, 2004, at 13:15, Hans-Bernhard Broeker wrote: > >> In the long term, should I add the script (that creates installers) >> and >> a few (3 at the moment) supporting files to gnuplot or should I keep >> it >> separate? > > I think they should go into gnuplot. We already lost at least one > complete Macintosh port because its source never was integrated with > the mainline source. No good reason to let that happen again. Well, It might happen again. >> It relies on a GPL'd utility to pack stuff up. AINAL, but that should >> not AFAICT cause any license violations. Comments? > > The existing build chain uses many GPL utitilities (gmake, autoconf, > etc). This was in response to a question raise by HBB in a previous mail. /Per |
|
From: Per P. <per...@ma...> - 2004-10-21 16:55:44
|
On Oct 21, 2004, at 18:03, Ethan Merritt wrote: > On Thursday 21 October 2004 03:18 am, Per Persson wrote: >> Hi, >> I'm considering adding code to make aqua the default terminal to the >> stable branch, as in CVS HEAD, but I'm not sure if that qualifies as a >> *neccessary* change. > > This makes zero sense to me. > As I recall you are telling people to download the development > version of aquaterm, so why balk at telling them to download the > development version of gnuplot to go with it? > The one is no harder than the other. Maybe I missed something, but I thought that the reason for branching the sources was that there would be a bugfix release of gnuplot 4.0 at some point in the future. My question was if changing the default terminal was something that you'd like to see in a bugfix release. I don't mind telling people to go with 4.1, in fact I'd encourage it. /Per |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-21 16:08:23
|
On Thursday 21 October 2004 05:00 am, Per Persson wrote: > Hi, > I've cleaned up my distro script for Mac OS X and would like to add it > and it's supporting files to CVS. > > I suppose the top dir rather than src/ is the appropriate location for > a directory with the files? > Any objections to naming that dir "MacOSXDistro"? I'm not objecting, at least not yet, but I'm curious exactly what files these are. I managed to install gnuplot on OSX directly from the existing tree, and I am a total novice user to OSX. What is needed beyond what is there already? > It relies on a GPL'd utility to pack stuff up. AINAL, but that should > not AFAICT cause any license violations. Comments? The existing build chain uses many GPL utitilities (gmake, autoconf, etc). -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-21 16:03:41
|
On Thursday 21 October 2004 03:18 am, Per Persson wrote: > Hi, > I'm considering adding code to make aqua the default terminal to the > stable branch, as in CVS HEAD, but I'm not sure if that qualifies as a > *neccessary* change. This makes zero sense to me. As I recall you are telling people to download the development version of aquaterm, so why balk at telling them to download the development version of gnuplot to go with it? The one is no harder than the other. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Per P. <per...@ma...> - 2004-10-21 12:00:27
|
Hi, I've cleaned up my distro script for Mac OS X and would like to add it and it's supporting files to CVS. I suppose the top dir rather than src/ is the appropriate location for a directory with the files? Any objections to naming that dir "MacOSXDistro"? It relies on a GPL'd utility to pack stuff up. AINAL, but that should not AFAICT cause any license violations. Comments? (I'm changing jobs next week so I'd like to get this out of the way before then.) /Per |
|
From: Per P. <per...@ma...> - 2004-10-21 10:18:56
|
Hi, I'm considering adding code to make aqua the default terminal to the stable branch, as in CVS HEAD, but I'm not sure if that qualifies as a *neccessary* change. Opinions? /Per |
|
From: Ian R. G. <ge...@kd...> - 2004-10-21 00:39:50
|
Greetings, I have been working on a KDE interface to Octave, when I found that there was no nice KDE wrapper around gnuplot. So I started one. I am mostly looking for people who are interested in helping me that are familiar with gnuplot. I only really know how to do pretty simple things with it, but I did most of the dirty work already, so anyone with minor C++ knowledge, and a good gnuplot background would work. The following C++ code generates the graphic at http://www.geiseri.com/kdevelop/gnuplot.png KGNUPlotWidget *wid =3D new KGNUPlotWidget(); LineStyle line(2); line.setLineType( 4 ); line.setLineWidth( 1 ); line.setPointType( 6 ); line.setPointSize( 3 ); LineStyle border( 3 ); border.setLineType( 9 ); border.setLineWidth( 2 ); FillStyle fill; fill.setType( FillStyle::pattern ); fill.setFillPattern( 2 ); fill.setBorderStyle( &border ); FunctionPlot *plot =3D new FunctionPlot( "sin(x)" ); plot->setTitle( "Test Plot of sin(x)" ); plot->setStartRange( -1 ); plot->setEndRange( 2 ); plot->setPlotStyle( PlotBase::linespoints ); plot->setLineStyle( &line ); wid->addLineStyle( &border ); wid->addLineStyle( &line ); wid->addFillStyle( &fill ); wid->show(); wid->resize(400,300); wid->setXLabel("Test X Label"); wid->setYLabel("Test Y Label"); wid->setFormats(KGNUPlotWidget::X, "%g"); wid->setFormats(KGNUPlotWidget::Y, "%.2f"); wid->plot(plot); Currently line styles, arrows, and arrow styles are supported. Fill is sort of supported, and plot for data or functions will work with most simple cases. I think the big issues that remain are the ones I am not aware of ;) Currently there is a small dependency on KDE, but I have plans to remove it, and the remainder works on Win32 or Unix. So who wants to play? I'm not on the list so please CC me. -ian reinhart geiser --=20 KDE - Unix is ready for the desktop http://www.kde.org |
|
From: Daniel J S. <dan...@ie...> - 2004-10-20 17:49:49
|
Harald Harders wrote: >On Tue, 19 Oct 2004, Ethan Merritt wrote: > > > >>My expectation for *.eps files is that they will by default be small enough >>to use as an inset figure within an normal page. So I would not like this >>to change. >> >> > >Ah, it seems I have not been clear enough. I do not want to change the >size of the postscript terminal (neither in ps nor in eps mode). At the >moment, the epslatex and ps(la)tex terminals use different sizes than the >eps mode of the postscript terminal. The question is whether to use the >eps size also for epslatex and ps(la)tex plots. Doing so would increase >consistency, not doing so would preserve compatibility to old versions. >Postscript and eps plots will stay unchanged. > >What do you think? > My guess is that it would be fine to do that. I think most commands for importing PS-related graphics into LaTeX allow scaling, i.e, one can specify something like the figure width being 0.5\textwidth, etc. So my guess is that few people use the "natural" size of the figure. There are some obvious differences between EPS and combined PS/LaTeX. The latter is probably a bit trickier in getting the font to scale appropriately with the EPS portions, but for the most part it matches pretty well. Dan |
|
From: Harald H. <h.h...@tu...> - 2004-10-20 17:14:15
|
On Tue, 19 Oct 2004, Ethan Merritt wrote: > My expectation for *.eps files is that they will by default be small enough > to use as an inset figure within an normal page. So I would not like this > to change. Ah, it seems I have not been clear enough. I do not want to change the size of the postscript terminal (neither in ps nor in eps mode). At the moment, the epslatex and ps(la)tex terminals use different sizes than the eps mode of the postscript terminal. The question is whether to use the eps size also for epslatex and ps(la)tex plots. Doing so would increase consistency, not doing so would preserve compatibility to old versions. Postscript and eps plots will stay unchanged. What do you think? > On Monday 18 October 2004 12:21 pm, Harald Harders wrote: > > When analizing my (e)ps(la)tex terminal patch, Theo Hopman noticed that > > the patch changes the plot size of the epslatex terminal towards the same > > size as the pure postscript terminal. My question is now whether all > > postscript related terminals should have the same plot size or if they > > should preserve their old size. > > > > The same plot size is more consistent and makes it easier to change > > between the different versions while different sizes preserve > > compatibility to old gnuplot versions. > > > > What do you think is better? > > > > Harald > > > > -- > Ethan A Merritt merritt@u.washington.edu > Biomolecular Structure Center > Mailstop 357742 > University of Washington, Seattle, WA 98195 > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > > -- Harald Harders h.h...@tu... http://www.harald-harders.de |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-19 23:35:52
|
My expectation for *.eps files is that they will by default be small enough to use as an inset figure within an normal page. So I would not like this to change. On Monday 18 October 2004 12:21 pm, Harald Harders wrote: > When analizing my (e)ps(la)tex terminal patch, Theo Hopman noticed that > the patch changes the plot size of the epslatex terminal towards the same > size as the pure postscript terminal. My question is now whether all > postscript related terminals should have the same plot size or if they > should preserve their old size. > > The same plot size is more consistent and makes it easier to change > between the different versions while different sizes preserve > compatibility to old gnuplot versions. > > What do you think is better? > > Harald > -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-19 23:29:18
|
On Tuesday 19 October 2004 10:34 am, Juergen Wieferink wrote: > > is there any reason that 'set label "foo" point ls 5' does not work? It breaks the duplicate specification checking logic in the parser (see below), but that isn't a very strong reason. I'll make the change. Incorrect error-checking: set style line 1 pt 4 ps 3 lt 6 splot 'foo' with labels left point pt 3 ls 1 # no error message, but ls is ignored splot 'foo' with labels left point ls 1 # works as expected -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Juergen W. <wie...@fr...> - 2004-10-19 17:35:38
|
Hi,
is there any reason that 'set label "foo" point ls 5' does not work?
OK, to set the linestyle for a point doesn't /sound/ very useful,
but the way gnuplot works, it would be, I think. [I had half an
hour of work today to work around this in my scripts. I would have
changed the code instead, if I had known how easy it is.]
If it would be an effort to allow it, but it seems a simple
if (almost_equals(c_token, "po$int")) {
int stored_token = ++c_token;
struct lp_style_type tmp_lp;
- lp_parse(&tmp_lp, 0, 1, -2, -2);
+ lp_parse(&tmp_lp, 1, 1, -2, -2);
if (stored_token != c_token) {
loc_lp = tmp_lp;
loc_lp.pointflag = 1;
in set.c:4402 (parse_label_options) would suffice, wouldn't it?
Greetings,
Juergen
|
|
From: Luca B. <luc...@st...> - 2004-10-19 15:00:07
|
Hi, =20
=20
my name is Luca Bellarosa and I am a PhD student.=20
I often use gnuplot for my plottings and I found the new version 4.0 re=
ally =20
nice. I have only one problem: if I set the xtics with font "arial,36" =
=20
('cause I have to do huge images) the numbers (not the xlabel) that by =
=20
default are on the x axis overlay the axis itself.=20
Is there any way, any keyword, any command to move these numbers down? =
=20
I checked carefully the FAQ questions but, as long as I could see, ther=
e=20
is no trace about this specific problem.=20
Thank you in advance, =20
=20
Luca=20
=20
|
|
From: Per P. <per...@ma...> - 2004-10-19 13:05:27
|
Hi, Just FYI I have added enhanced text support (sans overprint) for aquaterm, also added doc and ChangeLog entry. In case anyone would like to check it out, you need a recent CVS version of AquaTerm. It _will_ work with the current release, but some features are missing. /Per |
|
From: Harald H. <h.h...@tu...> - 2004-10-18 20:50:20
|
When analizing my (e)ps(la)tex terminal patch, Theo Hopman noticed that the patch changes the plot size of the epslatex terminal towards the same size as the pure postscript terminal. My question is now whether all postscript related terminals should have the same plot size or if they should preserve their old size. The same plot size is more consistent and makes it easier to change between the different versions while different sizes preserve compatibility to old gnuplot versions. What do you think is better? Harald -- Harald Harders h.h...@tu... http://www.harald-harders.de |
|
From: Petr M. <mi...@ph...> - 2004-10-18 13:11:14
|
Currently, the following code with a macro for generating labels works:
F(x)=sprintf("set label 1000+%i 'result %i' at %g,%g", x,x,x,x)
A=F(1)
@A
A=F(-1)
@A
plot x
Would it be possible to execute C-like macros:
@(F(1))
? I would like this.
---
PM
|
|
From: Ethan A M. <merritt@u.washington.edu> - 2004-10-17 03:04:20
|
On Friday 15 October 2004 06:12 am, Petr Mikulik wrote: > Having a datafile with at least 4 columns, for example: > then > splot 'a.dat' > reports > gnuplot> splot 'a3d.dat' > ^ > Wrong number of columns in input data - line 1 Rather than gripe again about how gnuplot assumes too much from the number of columns present, I have now re-organized the code in plot3d.c (get_3ddata) so that it is less sensitive to plot style and number of columns. I suppose the 2D code should be similarly cleaned up, but that will be more work because there are more 2D plot styles. -- Ethan A Merritt Department of Biochemistry & Biomolecular Structure Center University of Washington, Seattle |
|
From: Juergen W. <wie...@fr...> - 2004-10-16 11:00:33
|
Petr Mikulik wrote:
> I though that instead of using
> a=`runme`
> there would be an alternative with macro expansion:
> a=command('runme')
Yes, yes, I'd love that. The variable "a" contains a string
afterwards, doesn't it?
Currently, I'm trying to extract some information from comments in
datafiles. The crucial thing is that information is to be passes
from gnuplot to the script and vice versa. I need something like
gawkcall = sprintf("gawk -f getname %i %s", this_index, filename)
name = execute(gawkcall)
For numerical values, you can already do this with
getvalcall = sprintf("getval %i %s", this_index, filename)
value = `@getvalcall`
but something like
gawkcall = sprintf("gawk -f getval %i %s", this_index, filename)
value = atof(execute(gawkcall))
or
value = 0 + execute(gawkcall)
is cleaner, I think.
Juergen
|
|
From: Petr M. <mi...@ph...> - 2004-10-15 16:33:36
|
> back-tics. When called to expand the argument to a particular function, in
> this case system() or execute(), then it *would* expand in backtics.
I though that instead of using
a=`runme`
there would be an alternative with macro expansion:
a=command('runme')
> > >> gnuplot> print sprintf("%i", 5.)
> > >> 0
> > >This example doesn't work in C either.
> >
> > But it works in Octave and awk; I use it there to print an integer part of
> > the value. I would rather prefer an inteligent version that returns in the
> > above example 5.
>
> If Octave does that, I'd say it's a bug, or at least an unreliable behaviour.
> Auto-conversion of an ambiguous variable type is one thing, but
> refusing to do what the user asks for is quite another.
I think that all numbers in Octave are double, so it's not unexpected.
Awk knows how to convert numbers and strings, according to user
"expectation".
The result of the above being "5" is more expected than "0".
---
PM
|
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-15 16:25:22
|
On Friday 15 October 2004 12:01 am, Petr Mikulik wrote:
> I would propose to ignore macro expansion in `blabla1` and
> !blabla2
>
> but allow them in
> system('blabla2')
> and in
> value = execute('blabla1');
>
> Where the execute() is a new command. The user could use what he wants.
I think that would be possible.
The string expansion routine would be called in two places.
When called to process the entire command line it would not expand inside
back-tics. When called to expand the argument to a particular function, in
this case system() or execute(), then it *would* expand in backtics.
Anyone else have an opinion on that point?
Another alternative is to provide a run-time option
set macro$expansion {none|all|nobacktics}
> >> gnuplot> print sprintf("%i", 5.)
> >> 0
> >This example doesn't work in C either.
>
> But it works in Octave and awk; I use it there to print an integer part of
> the value. I would rather prefer an inteligent version that returns in the
> above example 5.
If Octave does that, I'd say it's a bug, or at least an unreliable behaviour.
Auto-conversion of an ambiguous variable type is one thing, but
refusing to do what the user asks for is quite another.
You have explicitly given a floating point number, and explicitly
given an integer format. That is user error. Is it "intelligent"
for a program to over-ride what the user has explicitly asked for?
> > FOO = floor(FOO)
> > "see man page for sprintf"
>
> Well, "man floor" says that result of floor() and ceil() is also a double
> value, so it does not help. Just in gnuplot it returns an integer.
I was not justifying gnuplot's use of floor; I was just responding
to the request for a way to insure that a gnuplot variable was an
integer. That command happens to work already.
I have no objection to adding a built-in function int(x).
--
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195
|
|
From: Petr M. <mi...@ph...> - 2004-10-15 13:13:04
|
I have found a bug:
Having a datafile with at least 4 columns, for example:
0 0 0 5
0 1 1 5
0 2 2 5
1 0 1 5
1 1 2 5
1 2 4 5
then
splot 'a.dat'
reports
gnuplot> splot 'a3d.dat'
^
Wrong number of columns in input data - line 1
You have to say explicitly:
splot 'a3d.dat' u 1:2:3
Can somebody find out wherefrom this bugs comes?
---
PM
|