Re: [Matplotlib-users] FancyBBox set_width

2012-09-04 Thread Jae-Joon Lee
On Sun, Aug 19, 2012 at 3:41 PM, Peter Combs wrote: > It seems like draw()ing the text object will reset the size of the BBox... > Any idea how to fix this? At the moment, I'm experimenting with continually > drawing, polling the get_width() method, and when it's too small, adding in > spaces arou

Re: [Matplotlib-users] Fwd: zoomed in detail box

2012-09-04 Thread Jae-Joon Lee
On Mon, Aug 20, 2012 at 10:50 PM, darkside wrote: > I am using zoomed_inset_axes, but the default position overlaps the yticks > and the parent axe ticks, so I am trying: > axins = zoomed_inset_axes(ax, > 3,bbox_to_anchor(0.5,1),bbox_transform=ax.figure.transFigure, loc=2) This is supposed to wor

Re: [Matplotlib-users] Problems with rasterizing multiple elements

2012-09-04 Thread Jae-Joon Lee
I recommend you to use LineCollection as it is rasterized as a single image. For example, from matplotlib.collections import LineCollection d = [np.array([ts[0], ys1]).T for ys1 in ys] lc = LineCollection(d, color='r', lw=0.5, alpha=0.5, rasterized=True) ax.add_collection(lc)

Re: [Matplotlib-users] Legend Marker Color Bug

2012-09-04 Thread Jae-Joon Lee
On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith wrote: > I still do not get black markers. Furthermore, if you try to make a new > legend with the result of leg.get_lines(), you will get lines without > markers, which leads me to the conclusion I stated in my previous email > (which you did not

Re: [Matplotlib-users] 1.1.1 fails to build on Linux

2012-09-04 Thread Michael Droettboom
matplotlib 1.1.1 does not support Python 3.x. You will need to build from git master for the time being. We should also have a 1.2rc out in the next weeks which will support Python 3. On 09/04/2012 07:09 PM, Roy Crihfield wrote: Attempting to install matplotlib with easy_install for python 3

[Matplotlib-users] 1.1.1 fails to build on Linux

2012-09-04 Thread Roy Crihfield
Attempting to install matplotlib with easy_install for python 3.2.3 on Linux (3.5.3-1-ARCH) fails like so. I have the freetype2 and numpy packages as you can see, and I have tried building from source with the same results. Processing matplotlib-1.1.1.tar.gz Writing /tmp/easy_install-quuxcl/matp

Re: [Matplotlib-users] Legend Marker Color Bug

2012-09-04 Thread Sterling Smith
On Aug 31, 2012, at 11:29AM, Goyo wrote: > 2012/8/30 Sterling Smith : > >> Thank you for taking the time to consider my question. I'm sorry that I >> didn't pose my question correctly. I should have said: 'Consider the >> _results_ of the following script:' I originally tried to attach the

Re: [Matplotlib-users] Limit data for plot Basemap

2012-09-04 Thread Benjamin Root
On Fri, Aug 24, 2012 at 12:21 PM, John Bluee wrote: > I have lat and lon as coordinates and to each point a value. So far I use > contourf to plot. > > Sorry for not getting back to you sooner. May I suggest the following: values = np.ma.masked_outside(values, -1e-8, 1e-9, copy=False) values =

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Drain, Theodore R (343P)
Isn't that what the unit system is for? It allows users to use whatever objects they want and register conversions to/from MPL types. If Decimal is a common use-case, then perhaps MPL should provide those converters but the user would (and probably should) still need to activate them. ___

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Eric Firing
On 2012/09/04 9:09 AM, Benjamin Root wrote: > > > On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay > wrote: > > > The following Python code: > > >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) > > Produces this error with Python 3.2: >

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Benjamin Root
On Tue, Sep 4, 2012 at 3:24 PM, Eric Firing wrote: > On 2012/09/04 9:09 AM, Benjamin Root wrote: > > > > > > On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay > > wrote: > > > > > > The following Python code: > > > > >>ax.fill_between(dates, lower, upper, fac

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Eric Firing
On 2012/09/04 9:09 AM, Benjamin Root wrote: > > > On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay > wrote: > > > The following Python code: > > >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) > > Produces this error with Python 3.2: >

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Benjamin Root
On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay wrote: > > The following Python code: > > >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) > > Produces this error with Python 3.2: > > Traceback (most recent call last): > File "scripts/audit_reports_weekly.py", line 150, in >

[Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Paul Tremblay
The following Python code: >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) Produces this error with Python 3.2: Traceback (most recent call last): File "scripts/audit_reports_weekly.py", line 150, in ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) F

Re: [Matplotlib-users] animation framework problem

2012-09-04 Thread gyro funch
On 2012-09-04 10:53 AM, Benjamin Root wrote: > > On Mon, Sep 3, 2012 at 4:26 PM, Gyro Funch > wrote: > > Hi, > > I am trying to create a multi-subplot animation with based loosely > on the animation example code, subplots.py, at > http://matplotlib

Re: [Matplotlib-users] animation framework problem

2012-09-04 Thread Benjamin Root
On Mon, Sep 3, 2012 at 4:26 PM, Gyro Funch wrote: > Hi, > > I am trying to create a multi-subplot animation with based loosely > on the animation example code, subplots.py, at > http://matplotlib.sourceforge.net/examples/animation/subplots.html > > A simplified version of the full code is shown a

Re: [Matplotlib-users] strange behaviour with fill_between

2012-09-04 Thread Francesco Montesano
Dear Eric, sorry for the delay in replying, and thanking: I forgot the mail after reading it. 2012/8/30 Eric Firing : > On 2012/08/27 5:10 AM, Francesco Montesano wrote: >> Dear matplotlibers, >> >> I encountered a bug (?) in fill_between when using logarithmic scales and >> the last part of y an

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Eric Firing
On 2012/09/03 9:36 PM, Jakob Gager wrote: > On 09/04/2012 09:13 AM, Eric Firing wrote: >> On 2012/09/03 8:33 PM, Jakob Gager wrote: >>> On 09/03/2012 08:57 PM, Eric Firing wrote: It looks like you can either use the _get_layout() method (which requires that you specify the renderer), or,

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Jakob Gager
On 09/04/2012 09:13 AM, Eric Firing wrote: > On 2012/09/03 8:33 PM, Jakob Gager wrote: >> On 09/03/2012 08:57 PM, Eric Firing wrote: >>> It looks like you can either use the _get_layout() method (which >>> requires that you specify the renderer), or, if you know the text object >>> will be among th

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Eric Firing
On 2012/09/03 8:33 PM, Jakob Gager wrote: > On 09/03/2012 08:57 PM, Eric Firing wrote: >> It looks like you can either use the _get_layout() method (which >> requires that you specify the renderer), or, if you know the text object >> will be among the last 50 for which _get_layout() has been called