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


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

Transfer data number into title

Started byDieter Britz <dieterhansbritz@gmail.com>
First post2012-10-26 10:18 +0000
Last post2012-10-26 13:31 +0000
Articles 3 — 2 participants

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


Contents

  Transfer data number into title Dieter Britz <dieterhansbritz@gmail.com> - 2012-10-26 10:18 +0000
    Re: Transfer data number into title ab <ab.3942@googlemail.com> - 2012-10-26 06:29 -0700
      Re: Transfer data number into title Dieter Britz <dieterhansbritz@gmail.com> - 2012-10-26 13:31 +0000

#1433 — Transfer data number into title

FromDieter Britz <dieterhansbritz@gmail.com>
Date2012-10-26 10:18 +0000
SubjectTransfer data number into title
Message-ID<k6do1m$f6q$1@dont-email.me>
I run a program that accepts some data and I want some
of that in a subsequent gnuplot title. Let's say the
data is the number N. Here is the script I run, briefly:

ifort proggie.f90
./a.out << eoi
N
eoi
rm a.out
#
gnuplot << eoi
set term postscript...
set title "........."
...
etc

How do I get the data N into the title?

-- 
Dieter Britz

[toc] | [next] | [standalone]


#1434

Fromab <ab.3942@googlemail.com>
Date2012-10-26 06:29 -0700
Message-ID<9bc85f3e-cc20-43c2-b9f5-36a28150bcae@ib4g2000vbb.googlegroups.com>
In reply to#1433
from your f90 program write a gnuplot command in a new file
mytitlefile:

mytitle = " TITLE with variable 42 "

 if N=42

load this file in gnuplot  and use the variable:

load "mytitlefile"
set title = mytitle

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


#1435

FromDieter Britz <dieterhansbritz@gmail.com>
Date2012-10-26 13:31 +0000
Message-ID<k6e3bf$hec$1@dont-email.me>
In reply to#1434
On Fri, 26 Oct 2012 06:29:07 -0700, ab wrote:

> from your f90 program write a gnuplot command in a new file mytitlefile:
> 
> mytitle = " TITLE with variable 42 "
> 
>  if N=42
> 
> load this file in gnuplot  and use the variable:
> 
> load "mytitlefile"
> set title = mytitle

Great, thanks!
-- 
Dieter Britz

[toc] | [prev] | [standalone]


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


csiph-web