[Matplotlib-users] how to delete figtext without removing my axes??

2007-03-07 Thread Jeff Peery
hello, I have an application I'm working on, and I need to remove figtext() without using a figure.clear(). how can I do this? thanks. Jeff - The fish are biting. Get more visitors on your site using Yahoo! Search Marketing.

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

2007-03-07 Thread John Pye
Hi Eric I tried the new spy function under Windows and it seemed to work OK. A great leap forward, actually, given the problems I had been seeing. Merging the spy functions was a good idea (does it work ok for very very large, very sparse matrices?) Trying it under Ubuntu was less straightforward

Re: [Matplotlib-users] Masked array problem in python 2.4.4 -SOLVED

2007-03-07 Thread Pierre GM
The problem was a use of (Numeric) MA with numpy. Pointing towards matplotlib.numerix.ma solved the issue. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance t

[Matplotlib-users] bug in axes3d.py

2007-03-07 Thread Zack 24
Matplotlib 0.90 Found the bug in axes3d.py lines 513, 514 please change: for rs in nx.arange(0,rows,rstride): for cs in nx.arange(0,cols,cstride): to: for rs in nx.arange(0,rows-1,rstride): for cs in nx.arange(0,cols-1,cstride): Otherwise I'm getting error

[Matplotlib-users] tick line color and axes line color???

2007-03-07 Thread Jeff Peery
Hello, I'm using the rcParams to set the plot settings. It all works great! ... except I haven't been able to set the axes line color or the x tick line color. Is there something like: Matplotlib.rcParams['xtick.linecolor] = 'w' Thanks, Jeff - Now that's r

Re: [Matplotlib-users] tick labels fall off the figure

2007-03-07 Thread Darren Dale
On Wednesday 07 March 2007 03:13:13 pm Emin.shopper Martinian.shopper wrote: > Dear Experts, > > I'm having a little problem with labels in a bar chart. When I do something > like > > labels = ['one','two','threee'] > pylab.bar(range(len(labels)),range(len(labels))) > pylab.xticks(range(len

Re: [Matplotlib-users] Masked array problem in python 2.4.4

2007-03-07 Thread jpan
Thanks for quick response! Sample script: -- #! /usr/local/bin/python from matplotlib.backends.backend_agg import FigureCanvasAgg from matplotlib.figure import Figure, SubplotParams from MA import * fig = Figure() ax = fig.add_axes([0.1,

Re: [Matplotlib-users] a bug in tex formatting?

2007-03-07 Thread johann cohen-tanugi
Actually, I have other problems : I cannot save in many formats. The bmp is deemed usueless by gimp, and ps and eps save options gives the following error message (I am using matplotlib-0.90 on python/ipython 2.4) : In [1]: show() ---

[Matplotlib-users] tick labels fall off the figure

2007-03-07 Thread Emin.shopper Martinian.shopper
Dear Experts, I'm having a little problem with labels in a bar chart. When I do something like labels = ['one','two','threee'] pylab.bar(range(len(labels)),range(len(labels))) pylab.xticks(range(len(labels)),labels,rotation='vertical') the long label isn't completely visible in the figu

Re: [Matplotlib-users] Contour Plot of experimental data (Zack 24)

2007-03-07 Thread Zack 24
Thanks Mark for the link! Exactly what I need. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief

Re: [Matplotlib-users] Masked array problem in python 2.4.4

2007-03-07 Thread Pierre GM
On Wednesday 07 March 2007 14:43:45 [EMAIL PROTECTED] wrote: > Anyone knows which of my package (MA, numpy, ...) might be causing the > conflict? I could go back to the older version (on another machine), but I > really like it to work in the newer version. Any inputs would be > appreciated. Hell

[Matplotlib-users] Masked array problem in python 2.4.4

2007-03-07 Thread jpan
Hi, My plot_dates(x, y) call, while working in python 2.4, failed in python 2.4.4. x here is dates array and y is a masked array returned by masked_values()from MA module. After much debugging, I found that problem occurs at ma.asarray(y) where y is the masked array with the following message:

[Matplotlib-users] a bug in tex formatting?

2007-03-07 Thread johann cohen-tanugi
Hello, I am attaching my python script to this email. It makes three figures, and everything is fine (I started with matplotlib a couple of weeks ago and so far I love it!), but for the way \tilde is dealt with, which seems to be a bug : If I do r'$A\tilde{B}$' the tilde is actually on the A !! I

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread kc106_2005-matplotlib
Thanks, John. That works perfectly. Now I understand better what the transform parameter is. Regards, > -Original Message- > From: John Hunter [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 07, 2007 10:12 AM > To: [EMAIL PROTECTED] > Cc: matplotlib-users@lists.sourceforge.net > Su

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread John Hunter
On 3/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Upon working with this a little further, I discover that it works only in > full-view screen mode. May be that's because xy is in pixel mode then? When > I save it to a png file and then view it, the lines are wrong. The default coords

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread kc106_2005-matplotlib
Upon working with this a little further, I discover that it works only in full-view screen mode. May be that's because xy is in pixel mode then? When I save it to a png file and then view it, the lines are wrong. -- John Henry - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PRO

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread kc106_2005-matplotlib
Thanks for the answer, John and Jouni. Okay, Line2D works. However, it appears to work in point (or is it pixels?) only. It doesn't accept xycoords="figure fraction" as an option. How can I specify xy as a fraction of the figure size? I read the transform cookbook cited by Jouni. I am afrai

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

2007-03-07 Thread Eric Firing
John Pye wrote: > Hi all > > I have got some funny behaviour here that looks like a bug with the > spy() function. Using the latest python-matplotlib 0.87.5 package on > Ubuntu 6.10, I try: > > $ ipython -pylab > from scipy import io > M = io.mmread('gd.mm') > spy(M) > M.shape > M.nnz > > It loo

Re: [Matplotlib-users] Contour Plot of experimental data (Zack 24)

2007-03-07 Thread Mark Bakker
See the - Gridding irregularly spaced data- how to grid scattered data points in order to make a contour or image plot. In the matplotlib cookbook. Mark

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread John Hunter
On 3/6/07, Jouni K. Seppänen <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > How do I draw a line going from point A to point B on a figure (not It probably makes more sense not to use Axes.plot at all, since the line is not associated with an Axes from matplotlib.lines import Line2D f

[Matplotlib-users] Contour Plot of experimental data

2007-03-07 Thread Zack 24
Hi, I've found no possibility to plot my experimental data with Matplotlib. The data are coming in the form of a list of xyz vector. [[1,2,3],[4,5,6],...] But Matplotlib needs 2D grid, which I can't provide. Does anybody know a solution of such a problem? It will be pretty nice to integrate a c

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

2007-03-07 Thread John Pye
Hi all I have got some funny behaviour here that looks like a bug with the spy() function. Using the latest python-matplotlib 0.87.5 package on Ubuntu 6.10, I try: $ ipython -pylab from scipy import io M = io.mmread('gd.mm') spy(M) M.shape M.nnz It looks great and I get the necessary number of d