Re: [Matplotlib-users] windrose

2013-04-04 Thread Sudheer Joseph
Thank you Scott, Some how I am not getting the trick of the  rect = [0.1, 0.1, 0.8, 0.8] I tried  rect1= [0.1,0.1,.4,.4] and rect2=[.4,.4,.8,.8]  but did not work Sudheer   *** Sudheer Joseph Indian National Centre for Ocean Information

Re: [Matplotlib-users] Affine2D on scatter

2013-04-04 Thread John Gleeson
On 2013-04-04, at 10:51 AM, Derek Thomas wrote: > ...screen capture of the display... > Derek, I just tried Phil's version of the code on my Mac (MP 1.2.0), and I see exactly the same problem as in your grab.tiff. This is using the default TkAgg backend. I happen to have built MP 1.2.0 wi

Re: [Matplotlib-users] MonthLocator doesn't honour rrule bymonthday -1 value for last day of month

2013-04-04 Thread Mark Lawrence
Sadly no :( I want the day of the month that I'm processing *OR* the last day. The worst case for this is obviously the 31st of each month. The rrule code I've given provides exactly that. When transferred to mpl that doesn't work. On 04/04/2013 17:31, Phil Elson wrote: > Hi Mark, > > Than

Re: [Matplotlib-users] Affine2D on scatter

2013-04-04 Thread Derek Thomas
I get a different result. On Thu, Apr 4, 2013 at 9:25 AM, Phil Elson wrote: > Hi Derek, > > What are we looking at here? > > The following code: > > import matplotlib.pyplot as plt > import matplotlib.transforms as mtrans > import numpy as np > > plt.figure() > ax = plt.subplot(111) > base_tran

Re: [Matplotlib-users] MonthLocator doesn't honour rrule bymonthday -1 value for last day of month

2013-04-04 Thread Phil Elson
Hi Mark, Thanks for persevering :-) What is it you want to achieve? Is it that you just want the last day of each month as the located value? Changing your locator to: ax.xaxis.set_major_locator(MonthLocator(bymonthday = -1)) Seems to do the trick for me (I've never looked at the mpl date magi

Re: [Matplotlib-users] Affine2D on scatter

2013-04-04 Thread Phil Elson
Hi Derek, What are we looking at here? The following code: import matplotlib.pyplot as plt import matplotlib.transforms as mtrans import numpy as np plt.figure() ax = plt.subplot(111) base_trans = ax.transData mtx = np.array([[1,1,0], [0,1,0], [0,0,1]]) tr = mtra

Re: [Matplotlib-users] MonthLocator doesn't honour rrule bymonthday -1 value for last day of month

2013-04-04 Thread Mark Lawrence
On 01/04/2013 14:48, Mark Lawrence wrote: > On 29/03/2013 15:49, Mark Lawrence wrote: >> Hi all, >> >>From http://labix.org/python-dateutil >> >> "To generate a rrule for the use case of "a date on the specified day of >> the month, unless it is beyond the end of month, in which case it will >>

[Matplotlib-users] Affine2D on scatter

2013-04-04 Thread Derek Thomas
I posted a related question on stackoverflow (http://stackoverflow.com/questions/15815862/apply-affine-transform-to-quiver-in-python-matplotlib) but I've produced a simple enough example with strange results that I think it merits attention here. I'm trying to apply affine transforms to quiver and

Re: [Matplotlib-users] windrose

2013-04-04 Thread Scott Sinclair
On 4 April 2013 06:45, Sudheer Joseph wrote: > Below is a sample script I got from windrose pack. I would like to > place 2 windroses side by side ... > > from windrose import WindroseAxes > from matplotlib import pyplot as plt ... > def new_axes(): > fig = plt.figure(figsize=(8, 8)