[Matplotlib-users] bug with spy(D)?

2007-03-07 Thread John Pye
D[i,j] gave me the right data, so it really looks like a bug with spy(). And FWIW spy2(M) fails with an error, whereas spy2(D) shows the same bug as spy(D). Is this something that has been fixed in the new 0.90 release? Cheers JP -- John Pye Department of Mechanical and Manufacturing Engin

Re: [Matplotlib-users] bug with spy(D)?

2007-03-07 Thread John Pye
tlib.sourceforge.net/whats_new.html (bit out of date) Cheers JP Eric Firing wrote: > > John Pye wrote: > >> >> Hi all >> >> >> >> I have got some funny behaviour here that looks like a bug with the >> >> spy() function.

[Matplotlib-users] Suggestion: better behaviour when saving files from GTK plot window

2007-03-29 Thread John Pye
could have a go at doing it myself, else I'd be happy to test it or whatever. Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/ ---

[Matplotlib-users] matplotlib RPM on SUSE 10.2?

2007-05-30 Thread John Pye
Hi all Can anyone tell me whether or not it is straightforward to run matplotlib on OpenSUSE 10.2? My project has a dependency on matplotlib and I have a user on that platform who tells me that it's not available as an RPM in the SUSE repository. Can that really be true? Cheers JP --

[Matplotlib-users] imshow output flips on window resize

2007-12-13 Thread John Pye
Hi all I have a problem with 'imshow' under matplotlib 0.90.1-2ubuntu1 on ubuntu 7.10. I have an 'incidence matrix' created using the 'imshow' command, and it works well except for the fact that sometimes when resizing my window, the incidence matrix flips upside-down. Can I control this flippin

[Matplotlib-users] showing an image on log axes?

2006-06-12 Thread John Pye
points as well. Is this possible with matplotlib? Can anyone give me some pointers on how to do it? Or a better tool for this? Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222

Re: [Matplotlib-users] showing an image on log axes?

2006-06-12 Thread John Pye
the right axes. Cheers JP 10 +-|-|-+ | | | | 1 + + + + | | | my image here | 0.1+ + + + | | | | e-3+-+-+-+ 0.11 10 100 John Hunter wrote: >>>>>> "John" == John Pye <[E

Re: [Matplotlib-users] showing an image on log axes?

2006-06-15 Thread John Pye
pace(low,high,num): return pylab.exp(pylab.linspace(pylab.log(low),pylab.log(high),num)) Perhaps someone else could clarify whether or not this implementation is 100% compatible with the Matlab one. Cheers JP John Hunter wrote: >>>>>> "John" == John Pye <[EMAIL PROT

[Matplotlib-users] plotting an array of enumerated values

2006-06-15 Thread John Pye
this? It seems that the technique in http://www.scipy.org/Cookbook/Matplotlib/Plotting_Images_with_Special_Values might be overkill, right? It also seemed that it had some problems with masked arrays. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of

[Matplotlib-users] latex labels on plots

2006-06-15 Thread John Pye
usetex' approach fails in that case. I wonder if someone with write access to the scipy wiki could maybe update the above page with some comments about the 'mathtext' support in Matplotlib? It might also be worth noting that the mathtext functionality doesn't support the

Re: [Matplotlib-users] plotting an array of enumerated values

2006-06-15 Thread John Pye
olors={ 2:(1,0,0,1) ,7:(0,1,0,1) } B = enumimage(A1,colors) print "B =",B pylab.figure() pylab.hold() pylab.imshow(B,interpolation='nearest',extent=0.5+nx.array([0,nx.size(A,0),nx.size(A,1),0])) pylab.axes pylab.show() John Pye wrote: &

[Matplotlib-users] flipping masked numarray matrices

2006-06-16 Thread John Pye
pud(A.mask())) print A1 Is there a better way to do this so that I can just write pylab.flipud(A)? Does it work ok with numpy? Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2

Re: [Matplotlib-users] latex labels on plots

2006-06-16 Thread John Pye
/m2)' > rc('text', usetex=False) > >It's perhaps not the mose elegant way to do, but I'm quite new to >python/pylab/matplotlib > > >Wolfgang > >John Pye schrieb: > > >>Hi all >> >>I came across this page: http

Re: [Matplotlib-users] plotting an array of enumerated values

2006-06-17 Thread John Pye
go. > > As noted, the masked regions will have a specified color; they will > not be transparent. If you need transparent masked regions, then try > pcolor instead of imshow. Pcolor plots nothing at all in masked > cells. Pcolormesh, on the other hand, is like imshow in plotting the

[Matplotlib-users] pickled plots?

2006-06-17 Thread John Pye
Hi all, A thought just occurred to me: I wonder if it would be useful to be able to 'pickle' Matplotlib plots, using the python cPickle library. This way, I could save my plots in a form that would allow me to load them back later (with just the necessary source data) and fiddle with things like t

Re: [Matplotlib-users] pickled plots?

2006-06-17 Thread John Pye
.cvs.sourceforge.net/freesteam/freesteam/freesteam.i?revision=1.16&view=markup (this is from the steam properties project that I run, http://freesteam.sf.net/) Cheers JP Bryan Cole wrote: >On Sun, 2006-06-18 at 00:05 +1000, John Pye wrote: > > >>Hi all, >> >>A t

[Matplotlib-users] exporting with alpha channel, mathtext, contour labels

2006-06-19 Thread John Pye
$") A couple of misaligned contour labels (eg '27' in the below) Any suggestions? This is with the latest Matplotlib 0.87.3, Python 2.4, ubuntu 6.06. Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Austra

Re: [Matplotlib-users] exporting with alpha channel, mathtext, contour labels

2006-06-19 Thread John Pye
) X = ma.array(X,mask=B.mask()) Y = ma.array(Y,mask=B.mask()) figure() pcolor(X,Y,B,alpha=0.15,shading='flat',cmap=C) hold(True) contour(x,y,B) xlabel('something') ylabel('else') Cheers JP John Hunter wrote: >>>>>> "John" == John Pye <[EMAIL

[Matplotlib-users] overriding the coordinates display on Figure window

2006-06-20 Thread John Pye
that would facilitate me doing this? Is there a way I can do this without having to patch matplotlib? It seems like this would be a generally useful addition to the event handling stuff for figure windows. Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of

Re: [Matplotlib-users] overriding the coordinates display on Figure window

2006-06-21 Thread John Pye
only the > coord in the toolbar. > ... > Try > > def myfmt(x,y): return 'myfmt (%1.2f, %1.2f)'%(x,y) > ax = subplot(111) > ax.format_coord = myfmt > ax.plot([1,2,3]) > > JDH > > > -- John Pye Department of Mechanical and Manufacturing Eng

Re: [Matplotlib-users] color bar with non-linear spacing

2006-06-30 Thread John Pye
I think this may be what you need http://matplotlib.sourceforge.net/matplotlib.colors.html#LinearSegmentedColormap As I recall there are some examples floating around somewhere, perhaps on the wiki... Cheers JP James Boyle wrote: > I am interested in producing a color map and accompanying color

Re: [Matplotlib-users] Latex problems...

2006-07-07 Thread John Pye
On FC4 (and FC5) we've got version 3.0 of tetex: $ rpm -q tetex tetex-3.0-10.FC4 So it looks like the Badger's dragging the chain in this case :-) Fernando Perez wrote: >But aside from my own troubles, I suspect that if you guys release >0.87.4 with this bug, I won't be the only one complaining

Re: [Matplotlib-users] embedded python and matplotlib

2006-07-12 Thread John Pye
Hi Lane, I don't have any answers for you here, but I do wonder if you might gains some insight on this by looking at the way IPython handles its '-pylab' and '-gthread' etc flags? Cheers JP Lane Brooks wrote: >So my question is: what is the correct way to setup python and/or >matplotlib when

[Matplotlib-users] jagged edges on masked contour plots

2006-07-18 Thread John Pye
even if a cell in the grid only has data on two sides? I suspect that the rule for contour plots is that no contours are shown if *any* of the point on the four corners are missing. There is an example with the jagged edge shown in the attached image. Cheers JP -- John Pye School of Mechanica

[Matplotlib-users] broken link

2006-07-20 Thread John Pye
Hi, Just wanted to let you know that the link at to the Numeric Python tutorial at http://matplotlib.sourceforge.net/tutorial.html is broken. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2