|
From: <pl...@pi...> - 2007-11-21 21:49:08
|
On Wed, 21 Nov 2007 20:03:52 +0100, Ethan Merritt <merritt@u.washington.edu> wrote: > Finally, let me note that one of my biggest long term wish-list items > is to have gnuplot emit similar information for use with SVG plots > embedded in a web page. The idea is to implement full browser-side > mousing/zooming capabilities for each embedded plot using jscript or > the equivalent. See for example the pages at: > http://sitn.ne.ch/ > Hi, that sounds very interesting, the DOM inspector in Firefox seems to be able to walk the xml structure so I guess there's a means of accessing/modifying content with javaScript. One thing I've often wanted on working with SVG is a means to get a readable file at the end of a plot command without having to unset terminal to write out the xml terminators and close the file. Unless this is done the file seems to be unparsable to any readers I've tried. For example , if I output to jpeg or png, I get a readable file after the plot command. With svg I dont. Would it make sense to have gnuplot terminate the unmatched tags until a further command is given in either of the following cases: 1/ end of .gnu file input from load "filename" . If svg terminal is still open , close unmatched tags. 2/ interactive use after plot command close tags while awaiting further input. The added tags would have to be stipped off again on adding further content. What I'd like to get to is periodic replotting of volatile data whilst independantly refreshing / reloading the SVG output in the viewer, typically a web browser on a timed or manual refresh. Especially in debugging it would be nice to avoid: unset terminal ; set terminal svg; replot; unset terminal .... loops. If I've just missed a trick, sorry for the noise. regards, Peter. |