[matplotlib-devel] [patch] Raise figures on pylab.show() with Qt4 backend
Hi all, I've just tried the Qt4 backend and noticed that, different from the previous backend I was using, the last command of a script pylab.show() does not raise the figures to the front (they show up but in the background). This is the case at least on my OS X machine. I personally feels like the figures taking becoming the active windows should be the right behavior. In case, this is valuable to the project, please find below at patch that achieves that behavior. Regards, -Gellule Index: lib/matplotlib/backends/backend_qt4.py === --- lib/matplotlib/backends/backend_qt4.py (revision 7293) +++ lib/matplotlib/backends/backend_qt4.py (working copy) @@ -67,6 +67,7 @@ figManager = Gcf.get_active() if figManager != None: figManager.canvas.draw() +figManager.window.raise_() if _create_qApp.qAppCreatedHere: QtGui.qApp.exec_() -- ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Including mathtex in matplotlib
Hi, On 23 Jul 2009, at 22:46, Gökhan SEVER wrote: > Could you please the advantages of using mathtext? How does it > compare and contrast to the existing interface? The interface itself is mostly the same, although there are a few enhancements to make it easier to use. To main advantages of using mathtex are that, being an external project, it is likely to experience a wider audience than the current code in matplotlib. This should result in a package that is better maintained with more features. Currently, however, it is almost exactly the same as the mathtext code in matplotlib. > Any pointers to read before getting more lost? There is the project code site here: http://code.google.com/p/mathtex/ while my project blog is here: http://gsoc-mathtex.blogspot.com/ Regards, Freddie. -- ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Request: make plotting of a single point more convenient
basically this works: plot([1], [1], "*") but I think it would be more convenient to add some kind of auto casting to the function in order to make this plot(1, 1, "*") work. I use those single-point-plotting-commands a lot in order to highlight a special point in a series of data, but I forget the [] all the time. Besides being much more convenient (at least for me) this behavior would also be much closer to the matlab version, since this works there without any problems. Any ideas/comments/criticism on this? -- ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel