[Matplotlib-users] figure.subplot not adding axis after deleting axis

2012-08-03 Thread Joshua Koehler
Hi all, I am creating a GUI using wxPython and Matplotlib. In it, I am trying to delete an axis in a figure and then adding another axis to the same figure. In essence, I am attempting to dynamically update the figure. I am using pylab.figure. I am using the figure.delaxes function to delete the

[Matplotlib-users] plt.figure.show() not working in Ubuntu

2012-07-26 Thread Joshua Koehler
Hi all, I am getting the following error message: 'Figure' object has no attribute 'show' When running matplotlib in Ubuntu 12.04, with matplotlib 1.2.x and pylab 1.6.2. The code is set up as such: fig = pylab.figure() ... fig.show() This works fine on Mac OSX 10.6 with matplotlib 1.1.0 and

Re: [Matplotlib-users] wxpython matplotlib figure resize

2012-07-19 Thread Joshua Koehler
wrote: > Thanks Josh this is much appreciated. I will definitely have a look at this > approach. > > Just for clarification, my code does only create the figures when the frame > is initialised. The plots are then updated/cleared as required. > > Regards, > Keit

Re: [Matplotlib-users] wxpython matplotlib figure resize

2012-07-16 Thread Joshua Koehler
.figure) > panel.ax = Axes3D(panel.figure) > #these labels should be selected later for specific components > panel.ax.set_xlabel('Current / %') > panel.ax.set_ylabel('Phase / degree') > panel.ax.set_zlabel('Error / %') >

Re: [Matplotlib-users] wxpython matplotlib figure resize

2012-07-13 Thread Joshua Koehler
. > To: Keith Jones > Cc: Joshua Koehler; matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] wxpython matplotlib figure resize > > > On Thu, Jul 12, 2012 at 9:27 PM, Keith Jones wrote: > Hi, > I am interested in a better solution to this problem, bu

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-12 Thread Joshua Koehler
That did the trick. I tried going through the source code but it just got too messy. How do I let the networkx developers know about this? On Jul 11, 2012, at 1:18 PM, Benjamin Root wrote: > > > On Wed, Jul 11, 2012 at 12:45 PM, Joshua Koehler wrote: > Hi all, > > I am c

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Joshua Koehler
Axes") ValueError: Argument must be an image, collection, or ContourSet in this Axes Thanks guys! Josh On Jul 11, 2012, at 1:18 PM, Benjamin Root wrote: > > > On Wed, Jul 11, 2012 at 12:45 PM, Joshua Koehler wrote: > Hi all, > > I am currently trying to have two panels each

[Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Joshua Koehler
Hi all, I am currently trying to have two panels each with their own figure instance so they can have separate plots. I can successfully update a plot if there is only one panel. As soon as I add a second panel, I get the following error when I try to update (replot) a plot (Showing last mess