|
From: Ethan A M. <EAM...@gm...> - 2015-01-31 04:40:12
|
On Friday, 30 January 2015 10:14:01 PM Kevin Klein wrote: > I was reading about gnuplot's hypertext feature here: > > http://gnuplot.sourceforge.net/demo_svg/hypertext.html > > Is it possible to have the data points highlighted when they are moused > over, like in this plot using D3: > > http://bl.ocks.org/Caged/6476579 It would be possible to do that, but it doesn't act that way currently. > Also is it possible to create a pannable/zoomable graph in gnuplot that > acts like this one using D3: > > http://bl.ocks.org/stepheneb/1182434 Yes. The gnuplot interactive terminals do full pan/zoom, although the mouse interface is a little different from your example. The options for embedding in a web page are not quite as feature-full. > In both cases I would want something created using gnuplot that could be > embedded in a webpage, as in the two examples above. > > I realize the above two examples are using D3, but if it is possible to > replicate those effects in gnuplot? See demos here based on using HTML5 2D canvas: This output mode support zoom but not pan. It also supports user-defined hot key operations, but the demo does not exercise this. http://gnuplot.sourceforge.net/demo_canvas_5.0/ Ethan |