|
From: Ethan M. <merritt@u.washington.edu> - 2011-10-22 15:46:21
|
On Saturday, 22 October 2011, Christoph Bersch wrote:
> On 22.10.2011 08:32 pl...@pi... wrote:
> >
> > My bottom line suggestion:
> >
> > gnuplot title is part of the final , terminal agnostic (possibly
> > printable) output. This is truly part of the graph and can not be
> > compromised by the user to fit in with something else. It is not
> > necessarily a good choice for other uses. In fact, probably isn't.
> >
> > set terminal svg name <svg title> changes to : ... svg title <svg
> > title> to avoid potentially confusing alternative names for same thing.
> > This will generally be much shorter than gnuplot's: set title <visible
> > plot title> . Help should explain that this is the document title and
> > that it does no appear in the graph.
>
> I agree with you, this looks like a good approach.
But this assumes that you re-open the terminal driver before
every plot. That hasn't been my practice in the past, and I
suspect I'm not the only one with gnuplot scripts in daily
use that don't do this. The generic usage up until now has
been as below, and again I point to the demo scripts, not
because they are important per se but just because they
illustrate the scripting style.
set term foo
set output 'plot1.foo'
set title "Graphs AB"
plot "A.dat" title "A", "B.dat" title "B"
set output 'plot2.foo'
set title "Graphs CDE"
plot "C.dat", "D.dat", "E.dat"
... and so on for many plots
I don't see the advantage in requiring that the terminal be
re-opened between plots just so that the title is updated.
If such scripts are not re-written, then under your suggestion
the page displaying graphs CDE will be labelled "Graphs AB".
Ethan
|