|
From: <pl...@pi...> - 2011-10-22 20:26:59
|
On 10/22/11 20:38, sfeam (Ethan Merritt) wrote: > On Saturday, 22 October 2011, pl...@pi... wrote: >> 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? > > The demos are all in the distribution package under .../demo/ > and the scripts for generating the html pages from them > are under .../demo/html/ > There are parallel scripts and Makefiles for png svg and canvas. > > Ethan > thanks, print GNUPLOT "set term svg enhanced font 'arial,10' mouse name \"$name"."_$plot\" jsdir '.' size 600,400 dynamic\n"; so it seems that you are using the 'name' feature in set term svg to create the names you want. That presumably requires the reopening of the terminal that you were objecting to earlier. It would also mean a rewrite if this is moved to plot. While each of your arguments has merit it seems something will break what ever is done. Name in canvas is out in stable so that's a bit inconvenient. If it was just a rename to 'title' name could be retained as pseudo for compatibility. Unless I'm misreading what is being done, your objection to closing svg terminal would not affect your scripts which seem to do this already. > 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" > So the svg title is not so much a property of the plot but the output file. Perhaps the title option should be there and rendered when it has meaning for the terminal .This relates to your earlier comment about making it visible to the terminals via a new interface. Is this also true for the other cases of title , would a new approach here address the issues with pdf etc ? Peter. |