[Matplotlib-users] Bug in contour plotting on 'cyl' basemap

2012-07-29 Thread Damien Irving
When using an equidistant cylindrical projection over a selected subregion of the globe, e.g. map = Basemap(llcrnrlon=50,llcrnrlat=-80,urcrnrlon=300,urcrnrlat=70,projection='cyl'), any contour plot that I try and generate (i.e. any plot generated using the map.contour() function) cannot plot a

Re: [Matplotlib-users] reusing the pylab gui in a custom application (wxpython)?

2012-07-29 Thread Vlastimil Brom
2012/7/30 Benjamin Root : > > > On Sunday, July 29, 2012, Vlastimil Brom wrote: >> >> Hi all, >> I'd like to ask about the possibility to eventually reuse the gui of >> pylab for showing and manipulating the plots in the custom application >> (written in wxpython). >> [...] >> Thanks in advance for

Re: [Matplotlib-users] reusing the pylab gui in a custom application (wxpython)?

2012-07-29 Thread Benjamin Root
On Sunday, July 29, 2012, Vlastimil Brom wrote: > Hi all, > I'd like to ask about the possibility to eventually reuse the gui of > pylab for showing and manipulating the plots in the custom application > (written in wxpython). > Basically, I'd like to add some application specific controls to the

[Matplotlib-users] reusing the pylab gui in a custom application (wxpython)?

2012-07-29 Thread Vlastimil Brom
Hi all, I'd like to ask about the possibility to eventually reuse the gui of pylab for showing and manipulating the plots in the custom application (written in wxpython). Basically, I'd like to add some application specific controls to the toolbar, or to place the existing gui to a custom frame, wh

Re: [Matplotlib-users] Bug in colorbar()

2012-07-29 Thread Eric Firing
On 2012/07/29 5:13 AM, Jeffrey Spencer wrote: > Eric, > > Normalize appears to be working correctly and as you stated above but > when passed into contourf appears to have inconsistent results not > following the docstring by allowing the value to change. > > Quick examples: > > X, Y = meshgrid(ara

Re: [Matplotlib-users] Adding a ready figure to pyplot.

2012-07-29 Thread Anton Akhmerov
Phil Elson writes: > > I don't have a good answer to this and have had to implement such a > thing in an outstanding pull request (in my case, I have a figure > which has been un-pickled and needs re-attaching to pyplot). > > My proposed mechanism goes something like: > > figure = matplotlib.f

Re: [Matplotlib-users] Adding a ready figure to pyplot.

2012-07-29 Thread Phil Elson
I don't have a good answer to this and have had to implement such a thing in an outstanding pull request (in my case, I have a figure which has been un-pickled and needs re-attaching to pyplot). My proposed mechanism goes something like: figure = matplotlib.figure.Figure(...) import matplotlib.

Re: [Matplotlib-users] Bug in colorbar()

2012-07-29 Thread Jeffrey Spencer
Eric, Normalize appears to be working correctly and as you stated above but when passed into contourf appears to have inconsistent results not following the docstring by allowing the value to change. Quick examples: X, Y = meshgrid(arange(20),arange(20)) Z = arange(20*20) Z = Z.reshape(20,20) no

Re: [Matplotlib-users] Bug in colorbar()

2012-07-29 Thread Eric Firing
On 2012/07/28 10:17 PM, Jeffrey Spencer wrote: > Think I figured out an actual bug in the function: colors.Normalize(). > > The behavior states that if vmin or vmax is passed in as None it should > take the minimum or maximum value respectively. > > If only one value is passed into the function, bo

[Matplotlib-users] Adding a ready figure to pyplot.

2012-07-29 Thread Anton Akhmerov
Hi, I am writing a module which should, among other things, output images, and it should work both in interactive mode and when imported as a script. In order for the plotting behavior to be clean, I would like to prepare the figure separate from pyplot. The reason for this, is that the figure

Re: [Matplotlib-users] histogram withx axis dates

2012-07-29 Thread Mark Lawrence
On 15/07/2012 04:04, William R. Wing (Bill Wing) wrote: > On Jul 14, 2012, at 8:57 AM, Mark Lawrence wrote: > >> On 14/07/2012 13:41, William R. Wing (Bill Wing) wrote: >>> On Jul 14, 2012, at 7:49 AM, Mark Lawrence wrote: >>> Sorry if I've missed this in the docs but is it possible to directl

Re: [Matplotlib-users] Bug in colorbar()

2012-07-29 Thread Jeffrey Spencer
Think I figured out an actual bug in the function: colors.Normalize(). The behavior states that if vmin or vmax is passed in as None it should take the minimum or maximum value respectively. If only one value is passed into the function, both values are overwritten to the min and max instead of j