Re: [Matplotlib-users] font style problem!

2008-08-19 Thread sa6113
family define font name here. sa6113 wrote: > > I use this code to set plot legend font : > > font = FontProperties(family ='monospace',style = 'italic',size='large', > weight='bold') > self.ax.legend( line, label, legend , prop = font) > > but font style dosen't effect while

Re: [Matplotlib-users] Automatic margins

2008-08-19 Thread Mathieu Leplatre
On Fri, Aug 15, 2008 at 1:52 PM, Mathieu Leplatre <[EMAIL PROTECTED]> wrote: >> There is a FAQ showing how to do this for tick labels using the >> bounding boxes of the labels. You could do something similar with the >> title bounding box >> >> http://matplotlib.sourceforge.net/doc/html/faq/howto_

Re: [Matplotlib-users] legend text vertical alignment

2008-08-19 Thread Michael Droettboom
My last response was sent before reading this. I think you've found the reason why it's not as easy as it seems... I think your suggestion (to manually adjust) is good for now. I'll see if I can find time to look at this when I get back. Cheers, Mike -

Re: [Matplotlib-users] legend text vertical alignment

2008-08-19 Thread Michael Droettboom
I'm out of town, so it's hard for me to look deeply into this now, but 0.91 and later supports "baseline" vertical alignment, but the legend layout code doesn't use it by default. It may be as simple as setting valign to "baseline" in the legend text -- or there may be a subtle interaction with

Re: [Matplotlib-users] Label baseline not aligned

2008-08-19 Thread Jae-Joon Lee
Hi, As far as I know, xticklabels in matplotlib are "top"-aligned, so you may see misaligned baseline sometimes. Still, the problem you reported seems to be a bug in the pdf-backend. I posted a simple bug fix of the pdf backend http://article.gmane.org/gmane.comp.python.matplotlib.general/14041

Re: [Matplotlib-users] Possible to add errorbars to existing line2D plots?

2008-08-19 Thread Jae-Joon Lee
You may use the "errorbar" function to draw lines (including errorbars) and then hide (and show again) errorbars. From the errorbar documentation, Return value is a length 3 tuple. The first element is the :class:`~matplotlib.lines.Line2D` instance for the *y* symbol lines. The seco

Re: [Matplotlib-users] Annotation add_artist bug

2008-08-19 Thread Tony S Yu
On Aug 19, 2008, at 11:37 AM, Ben Axelrod wrote: When I try using axes.add_artist() to add an Annotation object, it does not work. Adding a Text object in this manner works fine. Shouldn’t Annotation also work since it inherits from Text? The sample code below demonstrates. I am using

Re: [Matplotlib-users] Arrow Questions

2008-08-19 Thread Ben Axelrod
I thought of a way to side step the problem. Is it possible to have a Line2D object that only has a marker on one end? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Axelrod Sent: Thursday, August 14, 2008 5:54 PM To: Matplotlib Subject: [Matp

[Matplotlib-users] Annotation add_artist bug

2008-08-19 Thread Ben Axelrod
When I try using axes.add_artist() to add an Annotation object, it does not work. Adding a Text object in this manner works fine. Shouldn't Annotation also work since it inherits from Text? The sample code below demonstrates. I am using version 0.98.3. from matplotlib.pyplot import figure,

Re: [Matplotlib-users] font style problem!

2008-08-19 Thread Mathieu Leplatre
> but font style dosen't effect while other properties set properly. > what is the problem?? Did you try using a font name ? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linu

[Matplotlib-users] Possible to add errorbars to existing line2D plots?

2008-08-19 Thread Søren Nielsen
Is it possible to add errorbars to existing line2D plots? I'd like the user to be able to enable/disable errorbars by pushing a button. Cheers, Soren - This SF.Net email is sponsored by the Moblin Your Move Developer's challen