Re: [Matplotlib-users] plot a data stream with matplotlib

2009-01-19 Thread Simone Gabbriellini
I see that you first build your array and then display it at the end... is it possible in matplotlib to update the plot while the class is evolving? like: f.evolve(6) f.display() f.evolve(.27) f.display() f.evolve(10) f.display() f.evolve(2) f.display() best regards, simone 2009/1/19 C Lewis

[Matplotlib-users] Building matplotlib from source - compile error - defined in discarded section - _backend_agg.so

2009-01-19 Thread Anders.Strandberg
Hi, I have been trying to build matplotlib on SLED 10: + python setup.py build BUILDING MATPLOTLIB matplotlib: 0.98.5.2 python: 2.5.2 (r252:60911, Aug 21 2008, 18:45:08) [GCC

[Matplotlib-users] bug in NavigationToolbar2QT ?

2009-01-19 Thread Michael Dovrat
I have noticed that in the NavigationToolbar2QT there is a small display of x,y coordinates at the rightmost corner of the toolbar. However, when using Axes.set_ticklabels, for example, to normalize through the labels and not through the data itself or to make a reciprocal scale - set locations

[Matplotlib-users] Extending a plot outside of axes

2009-01-19 Thread Einar M. Einarsson
Hi all. is it not possible to extend plot outside of a plot area? To illustrate what I want to do take for example the wind barbs example from the matplotlib gallery. (see below) I only changed line 23 from ax.barbs(X, Y, U, V) to ax.barbs(X, Y, - U, -V) But now we don't see the tail of

Re: [Matplotlib-users] Extending a plot outside of axes

2009-01-19 Thread Jeff Whitaker
Einar M. Einarsson wrote: Hi all. is it not possible to extend plot outside of a plot area? To illustrate what I want to do take for example the wind barbs example from the matplotlib gallery. (see below) I only changed line 23 from ax.barbs(X, Y, U, V) to ax.barbs(X, Y, - U, -V)

[Matplotlib-users] HTML area for a matplotlib picture

2009-01-19 Thread Romain Bignon
Hello, This code worked with matplotlib 0.87: fig = Figure() ax = fig.add_subplot(121) width = 0.5 # the width of the bars self.dpi = 70 yoff = array([0.0] * len(self.__labels)) # the bottom values for stacked bar chart self.__bars = () for row in xrange(rows):

[Matplotlib-users] PS backend

2009-01-19 Thread Paul Novak
Hello, I am having some problems with the PS backend. I used the following script to create a PostScript file #!/usr/bin/env python import matplotlib matplotlib.use('PS') import matplotlib.pyplot as plt import numpy x1 = numpy.arange(0,5) y1 = x1 plt.plot(x1, y1) plt.savefig('ps_backend.ps')

[Matplotlib-users] Two bugs in quiver?

2009-01-19 Thread George Nurser
I think there may be two bugs in quiver. 1. Quiver doesn't seem to accept 1D arrays X and Y if they are different sizes -- they need to be turned into 2d arrays with meshgrid for the program to work. With line 13 uncommented I get the following error message: File quivtest.py, line 13, in

[Matplotlib-users] Strange problem with savefig?

2009-01-19 Thread George Nurser
I am finding a very strange error. I have a program that integrates a partial differential equation using fortran code in an f2py module. Data in arrays held in the f2py module is updated in the fortran code. The module arrays are exposed to python (but not changed by python code). After each

Re: [Matplotlib-users] Two bugs in quiver?

2009-01-19 Thread Eric Firing
George Nurser wrote: I think there may be two bugs in quiver. Thanks for the report. I can reproduce both problems, and I will try to solve them. Eric 1. Quiver doesn't seem to accept 1D arrays X and Y if they are different sizes -- they need to be turned into 2d arrays with meshgrid

Re: [Matplotlib-users] NOAA .bull file parsing

2009-01-19 Thread antonv
Hi Pierre, Thanks for the quick and thorough response! What I ended up doing is writing a custom function that does all the stuff that I needed without using numpy or mlab. Anton Pierre GM-2 wrote: Anton, You may wanna check on the numpy list as well. I recently reimplemented a function

Re: [Matplotlib-users] Two bugs in quiver?

2009-01-19 Thread Eric Firing
George Nurser wrote: I think there may be two bugs in quiver. Actually just 1... 1. Quiver doesn't seem to accept 1D arrays X and Y if they are different sizes -- they need to be turned into 2d arrays with meshgrid for the program to work. With line 13 uncommented I get the following

Re: [Matplotlib-users] plot a data stream with matplotlib

2009-01-19 Thread Ryan May
Simone Gabbriellini wrote: I see that you first build your array and then display it at the end... is it possible in matplotlib to update the plot while the class is evolving? like: f.evolve(6) f.display() f.evolve(.27) f.display() f.evolve(10) f.display() f.evolve(2) f.display()