Re: [Matplotlib-users] segfault while getting fig_manager while embedded in Wx

2009-05-20 Thread guillaume ranquet
Christopher Barker wrote: > John Hunter wrote: >> You cannot import pylab or pyplot is you are embedding mpl in wx >> (totally unsupported and expected to fail) -- you need to follow the >> patterns in >> >> http://matplotlib.sourceforge.net/examples/user_interfaces/index.html > > or use wxMPL: >

[Matplotlib-users] Colorbar for pcolor plot

2009-05-20 Thread marcusantonius
Hi everybody, I have the problem, that I cannot add a color bar to a pcolor plot, which I generate of some Data files. If I do fig = plt.figure() plot1 = fig.add_subplot(231,aspect='equal') plot1.pcolor(xsr) plot1.axis([0, 127, 0, 127]) plot1.colorbar() it just gives me AttributeError: 'AxesSub

Re: [Matplotlib-users] scatter plot

2009-05-20 Thread Matthias Michler
On Tuesday 19 May 2009 14:07:27 Bala subramanian wrote: > Friends, > > Someone please suggest me how to make scatter plot with a matrix data such > as the one attached. Is is possible to feed a matrix to scatter function > directly and plot the value in each row of the matrix. > > Thanks, > Bala H

Re: [Matplotlib-users] Colorbar for pcolor plot

2009-05-20 Thread Ryan May
On Wed, May 20, 2009 at 3:17 AM, marcusantonius < markus.hai...@student.uibk.ac.at> wrote: > > Hi everybody, > I have the problem, that I cannot add a color bar to a pcolor plot, which I > generate of some Data files. If I do > fig = plt.figure() > > plot1 = fig.add_subplot(231,aspect='equal') > p

Re: [Matplotlib-users] Colorbar for pcolor plot

2009-05-20 Thread John Hunter
On Wed, May 20, 2009 at 9:53 AM, Ryan May wrote: > Thanks for the full example, but if you carefully read the exception, it was > telling you the problem. :) plot1 here is an axes object, which does not > have a colorbar() method. Instead, you should change that to: > > plt.colorbar() > > Assum

Re: [Matplotlib-users] Colorbar for pcolor plot

2009-05-20 Thread Markus Haider
Thank you very much for your detailed explanations. When I try plot1 = fig.add_subplot(231,aspect='equal') plot1.pcolor(xsr) plot1.axis([0, 127, 0, 127]) plt.colorbar() I get the error message AttributeError: 'NoneType' object has no attribute 'autoscale_None' WARNING: Failure executing file: But

Re: [Matplotlib-users] Colorbar for pcolor plot

2009-05-20 Thread Markus Haider
Am Mittwoch, den 20.05.2009, 10:21 -0500 schrieb Ryan May: > > Except that it won't work like that. :) (I actually tried that the > first time) You need to give Figure.colorbar() the mappable as the > first argument. So this would then become: > > ax1 = fig.add_subplot(231,aspect='equal') >

Re: [Matplotlib-users] Colorbar for pcolor plot

2009-05-20 Thread Ryan May
On Wed, May 20, 2009 at 10:04 AM, John Hunter wrote: > On Wed, May 20, 2009 at 9:53 AM, Ryan May wrote: > > > Thanks for the full example, but if you carefully read the exception, it > was > > telling you the problem. :) plot1 here is an axes object, which does not > > have a colorbar() method.

Re: [Matplotlib-users] subplot

2009-05-20 Thread Alan G Isaac
On 5/18/2009 6:25 PM Yannick Copin apparently wrote: rowspan=2, colspan=3) should actually do. What would be the syntax for the following layouts? +-+-+ | | ax2 | | ax1 +-+ | | ax3 | +-+-+ subplot2grid(shape=(2,2), loc=(0,0), rowspan=2) subplot2grid(shape=(2,2), lo

[Matplotlib-users] Using matplotlib in fltk application: figures not being drawn

2009-05-20 Thread Jeremy Lewi
I would like to use matplotlib to incorporate plots into my fltk application. I would like to do this by writing a python function to create the appropriate graphic using matplotlib. When I want to update the figure, I want to call an update function written by me in python which computes the new

Re: [Matplotlib-users] Using matplotlib in fltk application: figures not being drawn

2009-05-20 Thread Christopher Barker
Jeremy Lewi wrote: > I would like to use matplotlib to incorporate plots into my fltk > application. > The key point is that I > want to display the figure in a non-blocking way so that control can > return to my fltk application while the figure is still being displayed. > To prototype this I h

[Matplotlib-users] setting x-Axis of bar() element in wxwidget application

2009-05-20 Thread Markus Feldmann
Hi All, i am programming an application which extracts binary values from 6 files and plots this values in a bar() element and another one. The bar Elements are partial one upon the other. I think this results of my my small x values. y1 = [1 0] y2 = [1 0] y3 = [1 1] x = [ 0. 0.0002149]

Re: [Matplotlib-users] ANN: matplotlib-0.98.5.3

2009-05-20 Thread John Hunter
On Mon, May 18, 2009 at 5:34 PM, Adam Mercer wrote: > On Mon, May 18, 2009 at 07:56, John Hunter wrote: >> I have uploaded the source and OSX binaries for the bugfix release of >> matplotlib-0.98.5.3 to >> >>  http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 > > The h

[Matplotlib-users] How has dates and autoscaling changed from 0.91.2 to 0.98.5.2

2009-05-20 Thread Joshua J. Kugler
So, my code has been running without flaw for quite some time now, and thanks to the help of some folks here a few months back, I'm learning more about matplotlib. But today I hit a wall. Under matplotlib 0.91.2/Py2.5, I'm getting this graph: http://joshuakugler.com/images/good_graph.png Very

Re: [Matplotlib-users] How has dates and autoscaling changed from 0.91.2 to 0.98.5.2

2009-05-20 Thread John Hunter
On Wed, May 20, 2009 at 9:36 PM, Joshua J. Kugler wrote: > So, my code has been running without flaw for quite some time now, and > thanks to the help of some folks here a few months back, I'm learning > more about matplotlib.  But today I hit a wall. > > Under matplotlib 0.91.2/Py2.5, I'm getting

Re: [Matplotlib-users] How has dates and autoscaling changed from 0.91.2 to 0.98.5.2

2009-05-20 Thread Joshua J. Kugler
On Wednesday 20 May 2009, John Hunter said something like: > On Wed, May 20, 2009 at 9:36 PM, Joshua J. Kugler wrote: > > So, my code has been running without flaw for quite some time now, > > and thanks to the help of some folks here a few months back, I'm > > learning more about matplotlib.  Bu