|
From: <pl...@pi...> - 2011-10-22 16:53:45
|
On 10/22/11 17:45, Ethan Merritt wrote: > 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 > There is a logical inconsistency it would seem. The svg title is more a property of the plot than of the terminal. Correct me if I am wrong but I suppose all the features we are discussing here are established in stable releases and hence pose a problem of backwards compatibility if they are changed. Specifically , does that apply to the 'name' option? I see on your demo titles of the following form: <g id="simple_3_plot_1" ><title>simple_3_plot_1</title> could you explain how that is created or post a link to the scripts that make it? Peter. |