Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1349
| From | tombert <tombert.groups@live.at> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Multiple canvas plots share same state variable? |
| Date | 2012-08-22 01:49 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <a68d1c19-d3e3-4ae5-bdcb-16f5d643dd5b@googlegroups.com> (permalink) |
| References | <93687e00-9428-4a48-a203-88724c19c651@googlegroups.com> <k10cr7$38f$1@dont-email.me> |
Dou you mean to store the state of the "gnuplot" variable on each mouseleave event and write it back each time the mouse enters? I am not sure if this would solve the problem since the canvas also can get redrawn without the mouse entering.
The sourceforge example shows one canvas only. I meant to provide a finite number of canvas with arbitrary plots. The final number of canvases is not known.
Your solution sounds like a workaround to me. I am voting for a complete isolation of the canvas state.
In my opinion gnuplot should generate javascript with static variables using the plot names:
var gnuplot_plot1 = { }
if (gnuplot_plot1.zoomed) {
....
}
Thus each canvas will get its own three javascript files.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Multiple canvas plots share same state variable? tombert <tombert.groups@live.at> - 2012-08-21 01:40 -0700
Re: Multiple canvas plots share same state variable? sfeam <sfeam@users.sourceforge.net> - 2012-08-21 09:26 -0700
Re: Multiple canvas plots share same state variable? tombert <tombert.groups@live.at> - 2012-08-22 01:49 -0700
Re: Multiple canvas plots share same state variable? sfeam <sfeam@users.sourceforge.net> - 2012-08-22 08:39 -0700
csiph-web