|
From: <pl...@pi...> - 2013-02-13 21:31:36
|
Hi,
may be I''m being a bit slow or just not looking in the right place but
I can't see a means to redirect output of a gnuplot print command to a
file.
I'm running series of fit and plot commands in a loop using gnuplot
iteration and I need to capture the output of some information (but not
get spammed by fit) I am printing at each step.
I have set fit quiet and get the output I need directly in the gnuplot
shell , so hackwise I could just scroll back and forth and copy and
paste, but it's a fag to do since there's rather a lot and this could
lead inaccuracies and copy errors I need to avoid.
I want to get output like to following into a file, what am I missing?
print sprintf(" len=%s; fitted = %5.3fm = %5.3fa",len,
p1*len,p1*len/12.);
many thanks, Peter.
|
|
From: Ethan A M. <sf...@us...> - 2013-02-13 21:36:19
|
On Wednesday, February 13, 2013 11:06:15 am pl...@pi... wrote:
> Hi,
>
> may be I''m being a bit slow or just not looking in the right place but
> I can't see a means to redirect output of a gnuplot print command to a
> file.
help set print
>
> I'm running series of fit and plot commands in a loop using gnuplot
> iteration and I need to capture the output of some information (but not
> get spammed by fit) I am printing at each step.
>
> I have set fit quiet and get the output I need directly in the gnuplot
> shell , so hackwise I could just scroll back and forth and copy and
> paste, but it's a fag to do since there's rather a lot and this could
> lead inaccuracies and copy errors I need to avoid.
>
> I want to get output like to following into a file, what am I missing?
>
> print sprintf(" len=%s; fitted = %5.3fm = %5.3fa",len,
> p1*len,p1*len/12.);
>
>
> many thanks, Peter.
|
|
From: <pl...@pi...> - 2013-02-14 08:13:12
|
On 02/13/13 22:34, Ethan A Merritt wrote:
> On Wednesday, February 13, 2013 11:06:15 am pl...@pi... wrote:
>> Hi,
>>
>> may be I''m being a bit slow or just not looking in the right place but
>> I can't see a means to redirect output of a gnuplot print command to a
>> file.
>
> help set print
>
>>
>> I'm running series of fit and plot commands in a loop using gnuplot
>> iteration and I need to capture the output of some information (but not
>> get spammed by fit) I am printing at each step.
>>
>> I have set fit quiet and get the output I need directly in the gnuplot
>> shell , so hackwise I could just scroll back and forth and copy and
>> paste, but it's a fag to do since there's rather a lot and this could
>> lead inaccuracies and copy errors I need to avoid.
>>
>> I want to get output like to following into a file, what am I missing?
>>
>> print sprintf(" len=%s; fitted = %5.3fm = %5.3fa",len,
>> p1*len,p1*len/12.);
>>
>>
>> many thanks, Peter.
>
Hi Ethan,
Many thanks, I could not believe it was not possible.
|
|
From: 松田七美男 <ma...@fi...> - 2013-03-03 02:22:59
|
Hi! I noticed some conflict in colorname defined in 'table.c'. sea-green 46,139,87 seagreen 193,255,193 In rgb.txt included X11, the color defined with RGB "193,255,193" is named 'DarkSeaGreen1'. But in fact, this color shows no _dark_ green, so one may not want to use a term of 'DarkSeaGreen1' as a name for rather light green. If you need _light_ green, palegreen(152,255,152) and lightgreen(144,238,144) will be nice. -------------------------- ma...@fi... |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2013-02-13 22:31:48
|
On 13.02.2013 20:06, pl...@pi... wrote:
> may be I''m being a bit slow or just not looking in the right place but
> I can't see a means to redirect output of a gnuplot print command to a
> file.
This has me baffled. How could you possibly have missed the blatantly
obvious "help print" while looking for this? I mean, come on, where
else but right there would anyone start looking for that information?
And it's not like "help print" were a 20-page section in which a single
detail might conceivably get lost --- here's the whole thing:
> print
> The print command prints the value of <expression> to the screen. It is synonymous with pause 0. <expression> may be anything that gnuplot can evaluate that produces a number, or it can be a string.
>
> Syntax:
>
> print <expression> {, <expression>, ...}
>
> See expressions. The output file can be set with set print.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
How much more obvious could it be?
|
|
From: <pl...@pi...> - 2013-02-14 10:51:27
|
Hi,
I have found an oddity in using pause -1
doc says it should wait for enter key which it does. But if I hit
another key stroke before hitting enter, it is initially ignore but when
I later hit enter it executes multiple repeats.
do for [len in "1 2 3"] { load "fit-data.gnu"; pause -1;}
the included file does a fit then plots the result. Thus I should be
able to loop through a series of plots using enter key.
If , after issuing the above command , I hit space twice then enter it
flashes though 1 and 2 then shows three.
I get the impression the test condition is waiting until the is a #13
but then processing all the previous keystrokes as being at match.
This does not seem to be the intended behaviour.
many thanks, Peter.
|
|
From: Karl-Friedrich R. <mai...@gm...> - 2013-02-14 12:04:37
|
This doesn´t reproduce for me.
On gp4.6pl0 official windows build, pause -1 waits until <space> or
<enter> is hit, all other keys pressed are completely ignored.
I like this behaviour (e.g. being able to proceed by pressing
<space>), but it is also undocumented.
Karl
On 14.02.2013 11:44, pl...@pi... wrote:
> Hi,
>
> I have found an oddity in using pause -1
>
> doc says it should wait for enter key which it does. But if I hit
> another key stroke before hitting enter, it is initially ignore but
> when I later hit enter it executes multiple repeats.
>
>
> do for [len in "1 2 3"] { load "fit-data.gnu"; pause -1;}
>
> the included file does a fit then plots the result. Thus I should be
> able to loop through a series of plots using enter key.
>
> If , after issuing the above command , I hit space twice then enter
> it flashes though 1 and 2 then shows three.
>
>
> I get the impression the test condition is waiting until the is a
> #13 but then processing all the previous keystrokes as being at match.
>
> This does not seem to be the intended behaviour.
>
> many thanks, Peter.
>
>
>
>
|
|
From: <pl...@pi...> - 2013-02-14 17:31:16
|
On 02/14/13 13:04, Karl-Friedrich Ratzsch wrote:
> This doesn´t reproduce for me.
>
> On gp4.6pl0 official windows build, pause -1 waits until <space> or
> <enter> is hit, all other keys pressed are completely ignored.
>
> I like this behaviour (e.g. being able to proceed by pressing
> <space>), but it is also undocumented.
>
> Karl
>
>
>
> On 14.02.2013 11:44, pl...@pi... wrote:
>> Hi,
>>
>> I have found an oddity in using pause -1
>>
>> doc says it should wait for enter key which it does. But if I hit
>> another key stroke before hitting enter, it is initially ignore but
>> when I later hit enter it executes multiple repeats.
>>
>>
>> do for [len in "1 2 3"] { load "fit-data.gnu"; pause -1;}
>>
>> the included file does a fit then plots the result. Thus I should be
>> able to loop through a series of plots using enter key.
>>
>> If , after issuing the above command , I hit space twice then enter
>> it flashes though 1 and 2 then shows three.
>>
>>
>> I get the impression the test condition is waiting until the is a
>> #13 but then processing all the previous keystrokes as being at match.
>>
>> This does not seem to be the intended behaviour.
>>
>> many thanks, Peter.
>>
>>
Thanks for the extra info. I'm running not-so-recent CVS on linux.
G N U P L O T
Version 4.7 patchlevel 0 last modified 2012-10-16
Build System: Linux i686
I just tested and space bar does not trigger in the way you indicate on
this build. It does behave as I described earlier: Space then Enter
triggers two iterations, not one. Both happen after hitting Enter.
regards, Peter.
|