[matplotlib-devel] Title for legend
Hello, a friend point me to [1] asking if there's a way to add a title to legend without applying this patch. Well, my answer was "not that I know of" then I start wondering if there's a reason this patch was not applied and there's a plan to do it anytime soon. [1] http://www.mail-archive.com/matplotlib-users%40lists.sourceforge.net/msg05678.html Thanks for considering, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] [IPython-dev] Interactive wx/pylab with no threads (PyOS_InputHook)
On 02/09/09 05:38, Brian Granger wrote: > IPython and matplotlib devs, > > Over the weekend I have been playing around to see if it is possible > to do interactive GUI work with wx from IPython *without using > threads*. The idea here is to use PyOS_InputHook. Currently, recent > versions of PyQt4 and PyGTK do this and if we can get wx working, we > can probably get rid of IPython's subtle threaded shells that > currently allow interactive GUIs to work. > > I am attaching a Cython module that mostly works. Here is a simple > example that works in IPython (without the -wthread option!) [...] > I don't have any more time to work on this right now, but I at least > wanted to share my findings with both IPython and matplotlib devs. It > would be great if someone familiar with wx could try to figure out the > remaining issues. If there are no takers here, I might eventually see > if wxpython itself is interested in this code (that is probably where > it really belongs anyway). This is cool! It works with mayavi, which is a pretty demanding test. I did run into problems with pyximport messing up on some imports but manually importing the inputhook.so fixed those. The interactive response is not snappy but it definitely works without a problem. One problem I can see with this is that while it does eliminate the threading, there are still issues with multiple toolkits. It would be neat if there were a system where you could mix toolkits too -- it looks like it should be possible to support this though. cheers, prabhu -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] [IPython-dev] Interactive wx/pylab with no threads (PyOS_InputHook)
On 02/09/09 11:59, Gael Varoquaux wrote: > On Sun, Feb 08, 2009 at 04:08:31PM -0800, Brian Granger wrote: >> * In the current matplotlib backend wx.Yield() is called in a way that >> is not safe as far as protecting against recursive calls to Yield. I >> think it should be called in this way: > >> app = wx.GetApp() >> if app is not None: >> app.Yield(True) > > The problem I see with this approach is that arbitrary wx programs will > always be doing this. The matplotlib guys can fix matplotib not to do > this. I can fix Mayavi not to do this, but there are many more wx > programs. And anyhow, most of the time, Yield should not be called, as it > is a hack. Unfortunately, you often end up having to call it. :( Just nit picking: You'd really have to modify traits and pyface for this. Mayavi doesn't start the mainloop. cheers, prabhu -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Title for legend
On Fri, Feb 13, 2009 at 3:31 AM, Sandro Tosi wrote: > Hello, > a friend point me to [1] asking if there's a way to add a title to > legend without applying this patch. Well, my answer was "not that I > know of" then I start wondering if there's a reason this patch was not > applied and there's a plan to do it anytime soon. > > [1] > http://www.mail-archive.com/matplotlib-users%40lists.sourceforge.net/msg05678.html Jae Joon -- will you review this and apply it if it looks like a good addition to you Thanks, JDH -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] svnmerge other files?
Hi, Can anyone explain why everytime I go to merge changes from the maintainance branch, it wants to tweak these files (besides the ones I actually changed)? doc/pyplots/README doc/sphinxext/gen_gallery.py doc/sphinxext/gen_rst.py Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] svnmerge other files?
I don't know why -- but what is different about those files is that they were added on the branch since the branch was created. I couldn't find any others that were. Perhaps svnmerge.py doesn't track adds completely correctly. In any case, it doesn't in fact change the content of these files (only touches them), so I consider that only a minor nuisance. Mike Ryan May wrote: > Hi, > > Can anyone explain why everytime I go to merge changes from the > maintainance branch, it wants to tweak these files (besides the ones I > actually changed)? > > doc/pyplots/README > doc/sphinxext/gen_gallery.py > doc/sphinxext/gen_rst.py > > Ryan > > -- > Ryan May > Graduate Research Assistant > School of Meteorology > University of Oklahoma > Sent from: Norman Oklahoma United States. > > > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > > > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Title for legend
John and Sandro, I just had a quick look at the patch. The patch is for older version of the mpl, and I couldn't test it yet. Anyhow, it should be straight forward to port it to the new legend class. I'll work on it. Meanwhile, below is a little code one may use to put the legend title w/o modifying the mpl. -JJ plot([1,2,3]) plot([2,1,3]) legend(["test", "test2"]) fig = gcf() ax = gca() from matplotlib.offsetbox import TextArea, VPacker mylegend=ax.get_legend() legendtitle=TextArea( "Legend Title", textprops=dict(size=20)) mylegend._legend_box = VPacker(pad=5, sep=0, children=[legendtitle, mylegend._legend_box], align="center") mylegend._legend_box.set_figure(fig) draw() On Fri, Feb 13, 2009 at 7:20 AM, John Hunter wrote: > On Fri, Feb 13, 2009 at 3:31 AM, Sandro Tosi wrote: >> Hello, >> a friend point me to [1] asking if there's a way to add a title to >> legend without applying this patch. Well, my answer was "not that I >> know of" then I start wondering if there's a reason this patch was not >> applied and there's a plan to do it anytime soon. >> >> [1] >> http://www.mail-archive.com/matplotlib-users%40lists.sourceforge.net/msg05678.html > > Jae Joon -- will you review this and apply it if it looks like a good > addition to you > > Thanks, > JDH > -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel