[Matplotlib-users] Latex equations and SVG export

2007-07-05 Thread kaushik.ghose
Hi, When I do m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') matplotlib renders it fine, but won't save it to svg correctly - the summation symbol doesn't show up. Is this a configuration issue on my part, or is svg support for latex currently incomplete? I'm on win vis

Re: [Matplotlib-users] stretching letters in plots

2007-07-05 Thread John Hunter
On 7/5/07, Christian Meesters <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to stretch letters like in this example > http://weblogo.berkeley.edu/examples.html using mpl? > I don't exactly want to reproduce sequence logos, but I would like to > 'scale' a letter arbitrarily in height, changing

Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread Jonathan Griffitts
In message <[EMAIL PROTECTED]>, Norbert Nemec <[EMAIL PROTECTED]> wrote >This is the result of a change that I committed in between 0.90.0 and >0.90.1 - sorry if it caused confusion... > >The idea is exactly what you observed: legend() only displays those >lines that have an explicit label set. > >

Re: [Matplotlib-users] export of a specific zone of a figure

2007-07-05 Thread Christopher Barker
Nicolas wrote: > > as I plan to make a Qt version in the future) > good idea. > You mean, to use Qt instead of Wx ? No, I'm a big wx fan. What I meant was that it's a good idea to keep this functionality GUI toolkit independent. > I've found a possible solution : looks good to me. >

Re: [Matplotlib-users] object canvas

2007-07-05 Thread Anthony M. Floyd
Hi Paul, > I would like to be able to use matplotlib as an object canvas, where > items on the canvas receive mouse events (enter, leave, press, > release) and the registered callback is invoked. I do this rather extensively with the wxAgg backend and wxPython widgets. Which backend/platform

[Matplotlib-users] stretching letters in plots

2007-07-05 Thread Christian Meesters
Hi, Is there a way to stretch letters like in this example http://weblogo.berkeley.edu/examples.html using mpl? I don't exactly want to reproduce sequence logos, but I would like to 'scale' a letter arbitrarily in height, changing its color and keeping it's width fixed. I didn't see things like t

Re: [Matplotlib-users] Matplotlib plotting performance

2007-07-05 Thread John Hunter
On 7/5/07, Tom Denniston <[EMAIL PROTECTED]> wrote: > Oops that was the TKAgg profile results. These are the WxAgg results > attached. Sorry about that. > > On 7/5/07, Tom Denniston <[EMAIL PROTECTED]> wrote: > > I've been trying to profile and speed up an app that uses matplotlib. > > I tried to

[Matplotlib-users] object canvas

2007-07-05 Thread Paul Kienzle
Hi, I would like to be able to use matplotlib as an object canvas, where items on the canvas receive mouse events (enter, leave, press, release) and the registered callback is invoked. For example, I want to be able to highlight the line associated with the legend entry as I mouse over the legend

Re: [Matplotlib-users] Matplotlib plotting performance

2007-07-05 Thread Tom Denniston
Oops that was the TKAgg profile results. These are the WxAgg results attached. Sorry about that. On 7/5/07, Tom Denniston <[EMAIL PROTECTED]> wrote: I've been trying to profile and speed up an app that uses matplotlib. I tried to write an example using simple pylab commands to reproduce the sl

Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread John Hunter
On 7/5/07, Norbert Nemec <[EMAIL PROTECTED]> wrote: > Sorry, I notice that there may be need for an additional explanation: > > What I call "explicit label" is one that is given as kwarg to the plot > command like > > plot(x,sin(x),label="sin(x)") This works for me in svn. I also think Norber

Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread Norbert Nemec
Sorry, I notice that there may be need for an additional explanation: What I call "explicit label" is one that is given as kwarg to the plot command like plot(x,sin(x),label="sin(x)") My standard use of legends is to give such an explicit label to every significant line and call legend() wit

Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread Norbert Nemec
This is the result of a change that I committed in between 0.90.0 and 0.90.1 - sorry if it caused confusion... The idea is exactly what you observed: legend() only displays those lines that have an explicit label set. If a certain line in a figure does not have a label, I think it is rather point

Re: [Matplotlib-users] Trouble with recent mpl

2007-07-05 Thread Edin Salkovic
Hi Nils, It seems there's a problem with some of the text instances (label, title etc.) that have TeX expressions in them. You can also attach the problematic script (or part of it) here. Best, Edin On 7/5/07, Nils Wagner <[EMAIL PROTECTED]> wrote: > Hi all, > > I rerun a program which I have

[Matplotlib-users] Trouble with recent mpl

2007-07-05 Thread Nils Wagner
Hi all, I rerun a program which I have written one year ago. Now It doesn't work for me with the latest svn version. Here is the output python lshape.py --verbose-helpful $HOME=/home/nwagner CONFIGDIR=/home/nwagner/.matplotlib matplotlib data path /usr/lib64/python2.4/site-packages/matplotlib/mpl

Re: [Matplotlib-users] Finance bars

2007-07-05 Thread Benoit Donnet
Eric, > Regarding your modification of linewidth, do you think this really > needs to be yet another kwarg, That's what I did (I'm not a Python expert). IMHO, this is more consistent with the existing methods (such as plot() or errorbar() ). > or is it adequate to be able to adjust the line