Re: [Matplotlib-users] Figure legend for 1.1.0 doesn't properly handle errorbars?

2011-10-19 Thread Sterling Smith
JJ, The workaround works. Thanks. -Sterling On Oct 17, 2011, at 6:58PM, Jae-Joon Lee wrote: > Meanwhile, you may do > > from matplotlib.legend import Legend > l = Legend(fig, h, l, loc='lower right') > fig.legends.append(l) > > This should be equivalent to fig.legend(h,l,loc='lower right'). >

[Matplotlib-users] matplotlib-grayscale

2011-10-19 Thread Friedrich Romstedt
Hi, I appreciate all the effort and, lastly, the large functionality offered by matplotlib. But I found no way around formulating things a bit provocative on http://friedrichromstedt.github.com/matplotlib-grayscale/index.html. The project is about matplotlib-grayscale, a matplotlib patch that ai

Re: [Matplotlib-users] memory error - netcdf plots

2011-10-19 Thread Jeff Whitaker
On 10/19/11 4:37 PM, questions anon wrote: thank you, I am not quite sure how to 'draw' the shapefile from matplotlib.collections import LineCollection ax = plt.gca() # get current axes instance # 'DSE_REGIONS' instance variable created by readshapefile method call.

Re: [Matplotlib-users] memory error - netcdf plots

2011-10-19 Thread questions anon
thank you, I am not quite sure how to 'draw' the shapefile but making those changes and removing the shapefile has sped the processing up considerably! Thank you for your help On Wed, Oct 19, 2011 at 11:42 PM, Jeff Whitaker wrote: > On 10/18/11 8:55 PM, questions anon wrote: > > Thanks Jeff, th

Re: [Matplotlib-users] Adding Arrows to polar plots

2011-10-19 Thread Benjamin Root
On Fri, Oct 14, 2011 at 3:42 AM, Nils Wagner wrote: > Hi all, > > what is the native "data" coordinate system for Arrows in > a polar plot ? > > How do I add arrows to a polar plot ? > > An example would be appreciated. > fig = figure(figsize=(12,12)) > ax = fig.add_subplot(111, polar=True) > > Ni

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-19 Thread Daniel Hyams
Ah, thanks so much Michael! That explanation helps a great deal; I was always considering things in "straight alpha" format, not even knowing that there was alternative. I'll play with this tonight; I don't see any problem getting the thing working, though, now that I know what agg expects to see

[Matplotlib-users] quiver colors

2011-10-19 Thread David Anthony Lavers
Dear all,   I am trying to plot a wind field using the quiver function and would like to color the wind arrows according to the wind strength. I have gone through the online matplotlib material, but have not been able to work out how to do it so far.   Would it be possible for someone to give

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-19 Thread Michael Droettboom
You are right that Agg is doing the resizing here. Agg expects premultiplied alpha. See [1] for information about what that means. [1] http://en.wikipedia.org/wiki/Alpha_compositing After Agg interpolates the pixel values, to prevent oversaturation it truncates all values to be less than alp

Re: [Matplotlib-users] memory error - netcdf plots

2011-10-19 Thread Jeff Whitaker
On 10/18/11 8:55 PM, questions anon wrote: Thanks Jeff, that certainly speeds it up! But when I take them out of the loop and place them elsewhere they are no longer added to the map. Is there someway I can call them in the loop but still get it to run quickly? Thanks Just the Basemap instanc

Re: [Matplotlib-users] QT draw issue in 1.1.0 and PyQt4v2 missing?

2011-10-19 Thread RuiDC
Thanks for the comprehensive explanation. So it would seem it's really only the http://matplotlib.sourceforge.net/users/whats_new.html page that is misleading on this. Many thanks! -- View this message in context: http://old.nabble.com/QT-draw-issue-in-1.1.0-and-PyQt4v2-missing--tp32676093p326

Re: [Matplotlib-users] QT draw issue in 1.1.0 and PyQt4v2 missing?

2011-10-19 Thread Eric Firing
On 10/18/2011 09:44 PM, RuiDC wrote: > Benjamin Root-2 wrote: > I think that might have been a little unclear. You should only need > to select 'PyQt4' or 'PySide'. If PyQt4 is selected, then (I think) > the v2 is automatically tested for internally. > > hmm, please explain where yo

Re: [Matplotlib-users] QT draw issue in 1.1.0 and PyQt4v2 missing?

2011-10-19 Thread RuiDC
efiring wrote: > > https://github.com/matplotlib/matplotlib/pull/539 > I think this pull request fixes it. > Eric > Great, thanks for confirming and fixing! Whilst waiting for this to make it into a release, I've hacked this to achieve the same effect (so I don't have to patch + distribute th

Re: [Matplotlib-users] QT draw issue in 1.1.0 and PyQt4v2 missing?

2011-10-19 Thread RuiDC
Benjamin Root-2 wrote: > > I think that might have been a little unclear. You should only need to > select 'PyQt4' or 'PySide'. If PyQt4 is selected, then (I think) the v2 > is > automatically tested for internally. > hmm, please explain where you think it is used internally, as the code seem