From: Fernando P. <fp...@co...> - 2004-04-18 22:24:55
|
Hi all, Nadav had reported in http://sourceforge.net/mailarchive/forum.php?thread_id=3592388&forum_id=11272 having problems with mouse support with v1.7. After following Michael's debugging suggestion, I found the culprit to be line 188 of _Gnuplot.py: self('set terminal %s' % (gp.GnuplotOpts.default_term,)) The problem is that now (v.1.6 and earlier did NOT do this), each Gnuplot instance gets issued a 'set terminal FOO' command immediately upon starting. Unfortunately, the 'set mouse' command (for reasons I don't understand), can ONLY be issued as the very first command to gnuplot. Otherwise it has no effect. So in v1.7, by the time the Gnuplot() instance is returned, it's already impossible to activate the mouse for it in any way. I fixed this for myself by just commenting out that line. It wasn't there in v1.5 which I've used for a long time without any problems, so I'm not too worried. Michael may want to do something a bit better, perhaps including an option for 'set mouse' in the constructor, or mouse support auto-detection. If you want to go this route, let me know and I can send you the mouse support code I have in IPython's Gnuplot routines. Regards, f |