writting results in the title

writting results in the title

Post by Damian Stri » Tue, 29 Jul 2003 23:15:06

I need to do something that I could not find in the help, or in the FAQ,
and I would like
to know if its possible to do that, and how.

I am passing some arguments to a "call" function, and inside the call I
do some calculation
with these numbers, like using them to automatically rescale axes,
etc.... Everything is ok, the
plots are generated ok, but I would like to put in the title or in the
key the value of this
internal result. To put it simple, I don't know how to put the value of
m in the xxx place of the
following example:

gnuplot>call "file.gnp" 1 1

m=$0 + sin($1)
set title 'The value of m is xxx\n'
p 'data.dat' u ($$1*m):2

I know that I can do, for example,

print "The value of m is",m

but there is nothing like a print_title function.
I am using the following gnuplot in the following linux:

        G N U P L O T
        Version 3.7 patchlevel 2
        last modified Sat Jan 19 15:23:37 GMT 2002
        System: Linux 2.4.18-14

        Copyright(C) 1986 - 1993, 1998 - 2002
        Thomas Williams, Colin Kelley and many others

        Type `help` to access the on-line reference manual
        The gnuplot FAQ is available from

Compile options:

HELPFILE     = "/usr/share/gnuplot.gih"
FAQ location = <http://www.gnuplot.info/gnuplot-faq.html>


Thank you very much in advance!

Damian Strier
Centre de Recherche Paul Pascal (CRPP-CNRS)
Avenue A. Schweitzer, 33600 - Pessac, France
Tel: +33 5 56 84 56 08
Fax: +33 5 56 84 56 00

 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot



writting results in the title

Post by Hans-Bernhard Broeke » Tue, 29 Jul 2003 23:21:59

> internal result. To put it simple, I don't know how to put the value of
> m in the xxx place of the
> following example:

This almos entirely independent of call scripts.  The feature you're looking
is indeed not present in any version of gnuplot made so far.

There's a way of doing roughly what you need in the development branch,
using a new feature of the "set label" command:

        set label "Title line is: %g", m at screen 0.5, screen 0.05 center

(Adjust numbers to suit your needs).


Even if all the snow were burnt, ashes would remain.


1. fit result in title

I would like to plot the fit result in the title
of the fiting curve, for example :

fit y(x) "data.txt" u 1:2 via b
plot    'data..txt' using 1:2 w l,\
    y(x) t "$b"

but it do not work ...

2. ABSOLUTE PROOF ==>Jesus *is* Lord of the Sabbath !

3. Title, X-axis and Y-axis Titles of a plot

4. Select All in Corel Script

5. Change Font in title bar of mdi child/Hide title bar

6. VB - Live Video on VB form

7. Writting a JPEG file with JAVA?

8. GL_EXT_compiled_vertex_array

9. POVRay 3.0 for Win32 not writting to file

10. Neon Tube Writting

11. Writting Filters

12. Text Writting