[Matplotlib-users] irregularly spaced grids and imshow....

2008-08-07 Thread Grégory Lielens
Hello everybody, we are looking for the best way to plot a waterfall diagram in Matplotlib. The 2 functions which could be used to do that are (as far as I have found) imshow and pcolormesh. Here is a small script that use both to compare the output: - from pylab import * delt

Re: [Matplotlib-users] Installation woes: phantom Numpy version?

2008-08-07 Thread Richard Lawrence
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, Thanks for your help. | | Most likely there is another version of numpy on your system that easy | install is picking up (multiple versions of python perhaps?). You | might try to find them with | | > find / -name numpy -type d | Indeed, thi

[Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread stuartornum
Hi, I have been using matplotlib for about 2 weeks now. I thought it would be good to try plotting heatmaps to show some data. The idea: I have 100 values all ranging from 0.00 to 1.00, I would like to create a graph with a 10 by 10 grid. Therefore each value has 1 section of the grid. So, for

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread peter websdell
Someone more knowlegeable than me may corrct me here, but the code for getting your data into a grid could be greatly simplified to: X = array([0,1,2,3,4,5,6,7,8,9,]) Y = array([0,1,2,3,4,5,6,7,8,9,]) Z = ListValues.reshape(10,10) than you could use something like imshow() to show the data withou

Re: [Matplotlib-users] Installation woes: phantom Numpy version?

2008-08-07 Thread Chris Barker
> On Wed, Aug 6, 2008 at 5:02 PM, Richard Lawrence <[EMAIL PROTECTED]> wrote: >> My setup is: >> Mac Pro PPC G5, OS X 10.5.4 >> Python 2.5.1 (Apple build) >> Numpy 1.2.0.dev5615 -- ran svn update and rebuilt this morning >> REQUIRED DEPENDENCIES >> ~* numpy 1.1 or later is

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread stuartornum
Hi Pete, Thanks for the quick response. Will imshow() actually plot the graph? Do I not need to do something like: contourf(X, Y, Z, levels) Thanks -- View this message in context: http://www.nabble.com/Contour-Contourf-Plot-Heatmap---Grid---Multiple-Items-tp18872991p18874222.html Sent from

[Matplotlib-users] clip_on vs clip_box

2008-08-07 Thread Ben Axelrod
What is the difference between setting clip_on and clip_box? For an annotation, there does not appear to be any difference. But if I give the annotation a bbox, then only clip_box works to clip the box at the axes boundary. The example below demonstrates: from matplotlib.pyplot import figure,

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread kippertoffee
here's an example of pcolormesh on a random 10x10 array http://www.nabble.com/file/p18874393/spam2.png stuartornum wrote: > > Hi Pete, > > Thanks for the quick response. > > Will imshow() actually plot the graph? > > Do I not need to do something like: > > contourf(X, Y, Z, levels) > > T

[Matplotlib-users] wxmpl incompatibility with matplotlib 0.98.x

2008-08-07 Thread massimo sandal
Hi, Sorry if bothering you. Here we use a software (that I've written) that is based on wxmpl and matplotlib, among other things. A collegue of mine noticed a problem when installing it on Windows, with the following error: File "hooke.py", line 21, in import wxmpl File "C:\Python25\

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread stuartornum
That looks perfect, how did you do it? Thanks kippertoffee wrote: > > here's an example of pcolormesh on a random 10x10 array > > http://www.nabble.com/file/p18874393/spam2.png > > > stuartornum wrote: >> >> Hi Pete, >> >> Thanks for the quick response. >> >> Will imshow() actually plo

Re: [Matplotlib-users] wxmpl incompatibility with matplotlib 0.98.x

2008-08-07 Thread Michael Droettboom
I'm not aware of the problem (but I'm not a regular wxmpl user). From 0.91 to 0.98, a major refactoring was done to make it easier to add new kinds of projections. So PolarAxes is no longer a special case, it is just one of many possible non-Cartesian projections. Unfortunately to do this, t