Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4668 > unrolled thread

Passimg value to gnuplot

Started bydb <dieterhansbritz@gmail.com>
First post2024-08-10 14:56 +0000
Last post2024-08-13 13:19 +0000
Articles 5 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Passimg value to gnuplot db <dieterhansbritz@gmail.com> - 2024-08-10 14:56 +0000
    Re: Passimg value to gnuplot Chris Elvidge <chris@x550c.mshome.net> - 2024-08-10 17:50 +0100
      Re: Passimg value to gnuplot db <dieterhansbritz@gmail.com> - 2024-08-12 13:28 +0000
        Re: Passimg value to gnuplot Hans-Bernhard Bröker <HBBroeker@gmail.com> - 2024-08-12 19:09 +0200
          Re: Passimg value to gnuplot db <dieterhansbritz@gmail.com> - 2024-08-13 13:19 +0000

#4668 — Passimg value to gnuplot

Fromdb <dieterhansbritz@gmail.com>
Date2024-08-10 14:56 +0000
SubjectPassimg value to gnuplot
Message-ID<v97v20$mkkp$1@dont-email.me>
I am writing a Fortran program that computes a number, which I want to
appear in a label in a subsequent gnuplot. What is the best way to
pass it and pick it up as label?
-- 
db

[toc] | [next] | [standalone]


#4669

FromChris Elvidge <chris@x550c.mshome.net>
Date2024-08-10 17:50 +0100
Message-ID<v985pk$nucq$1@dont-email.me>
In reply to#4668
On 10/08/2024 at 15:56, db wrote:
> I am writing a Fortran program that computes a number, which I want to
> appear in a label in a subsequent gnuplot. What is the best way to
> pass it and pick it up as label?
> 
Look here:
https://stackoverflow.com/questions/12328603/how-to-pass-command-line-argument-to-gnuplot
http://www.bersch.net/gnuplot-doc/batch-interactive-operation.html


-- 
Chris Elvidge, England
I WILL NOT COMPLAIN ABOUT THE SOLUTION WHEN I HEAR IT

[toc] | [prev] | [next] | [standalone]


#4670

Fromdb <dieterhansbritz@gmail.com>
Date2024-08-12 13:28 +0000
Message-ID<v9d2m5$3adhj$1@dont-email.me>
In reply to#4669
On Sat, 10 Aug 2024 17:50:59 +0100, Chris Elvidge wrote:

> On 10/08/2024 at 15:56, db wrote:
>> I am writing a Fortran program that computes a number, which I want to
>> appear in a label in a subsequent gnuplot. What is the best way to pass
>> it and pick it up as label?
>> 
> Look here:
> https://stackoverflow.com/questions/12328603/how-to-pass-command-line-
argument-to-gnuplot
> http://www.bersch.net/gnuplot-doc/batch-interactive-operation.html

These don't help.
OK, maybe this is easier: My Fortran program writes out s single
text line into a data file. It contains some text and a number.
Now I start gnuplot. How do I get gnuplot to pick up that text
and use it in a label or in a title?

-- 
db

[toc] | [prev] | [next] | [standalone]


#4671

FromHans-Bernhard Bröker <HBBroeker@gmail.com>
Date2024-08-12 19:09 +0200
Message-ID<lhutuvFlaahU1@mid.dfncis.de>
In reply to#4670
Am 12.08.2024 um 15:28 schrieb db:

> OK, maybe this is easier: My Fortran program writes out s single
> text line into a data file. It contains some text and a number.
> Now I start gnuplot. How do I get gnuplot to pick up that text
> and use it in a label or in a title?

Make your output file look like gnuplot commands, and then just "load" 
that file.

E.g. your output might look like this:

# some notes here, which gnuplot treats as comments
# even more text to ignore
nice_variable_name = 15.735

[toc] | [prev] | [next] | [standalone]


#4672

Fromdb <dieterhansbritz@gmail.com>
Date2024-08-13 13:19 +0000
Message-ID<v9fmge$3t80k$1@dont-email.me>
In reply to#4671
On Mon, 12 Aug 2024 19:09:50 +0200, Hans-Bernhard Bröker wrote:

> Am 12.08.2024 um 15:28 schrieb db:
> 
>> OK, maybe this is easier: My Fortran program writes out s single text
>> line into a data file. It contains some text and a number. Now I start
>> gnuplot. How do I get gnuplot to pick up that text and use it in a
>> label or in a title?
> 
> Make your output file look like gnuplot commands, and then just "load"
> that file.
> 
> E.g. your output might look like this:
> 
> # some notes here, which gnuplot treats as comments # even more text to
> ignore nice_variable_name = 15.735

Ah, thanks, perfect.

-- 
db

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web