|
From: Ethan M. <merritt@u.washington.edu> - 2011-10-21 05:44:08
|
On Thursday, 20 October 2011, pl...@pi... wrote: > The 'js_id' option is used by the interactive mouse features and must be > a valid javascript variable name. In short, this means it cannot > contains certain characters like spaces and punctuation marks. An error > will be produced when the graph is plotted if this is not a valid name. > If not specified it will be 'gnuplot_plot_n' , where n is 1 for a simple > plot but may be greater than one in the case of multiplot output. Just FYI, that isn't quite correct. "n" increases with each plot in the graph. So if you say plot sin(x),cos(x),'foo.dat','baz.dat' these are plot_1, plot_2, plot_3, and plot_4. Multiplot is a whole separate issue, currently broken. I suppose we will have to come up with a revise scheme to handle it. > The 'title' option sets the svg <title> element that is displayed by > some svg viewers in the title bar. It is not visible in the plot itself. > If not supplied it will be the same as 'js_id' value. This isn't quite correct either, at least for me running firefox here. Each plot has a title, and it pops up in a little box whenever the mouse is over that plot. As you point out, the title of the first plot also is displayed in the top window bar. But I think that may be a firefox bug/idiosyncracy. Opera and Konqueror display the filename instead. I don't mind adding something to make firefox display a different title, but so far I have not figured out how :-( Ethan |