Re: [Matplotlib-users] does matplotlib have an analog to imagesc(x, y, X) of Matlab?

2008-04-19 Thread Eric Firing
Vsevolod Kovalenko wrote: Dear matplotlib I have a newbie question (I am new to python, migrating from Matlab). Just like the subject suggests, I need to display an image X stored in a matrix (well, a 2D numpy array in fact) versus the coordinates specified by arrays x and y. Further, it

[Matplotlib-users] multiple legends

2008-04-19 Thread bevan jenkins
Hello, Firstly I would like to thank the developers of the matplotlib for providing an excellant tool. I have managed to get some code up and running. Due to the nature of the data I would like to have two legends I would like them positioned within the plot on the 'upper left' and 'upper

[Matplotlib-users] Hexagonal binning for scatter plots

2008-04-19 Thread Michiel de Hoon
Hi everybody, Is there a function in matplotlib for hexagonal binning of scatter plots? Here are some examples of what I am looking for: http://faculty.washington.edu/tlumley/survey/greyhexbin.png http://www.spss.com/research/wilkinson/nViZn/hexbin.gif

[Matplotlib-users] distance between tick label and xlabel

2008-04-19 Thread Yong-Duk Jin
When I increase the xlabel fontsize, it overlaps with the tick label. How can I adjust the distance between tick label and xlable (or ylabel)? Please help me. -- Yong-Duk Jin - This SF.net email is sponsored by the 2008

[Matplotlib-users] Plotting Matlab NaNs in matplotlib

2008-04-19 Thread Fernando Abilleira
Dear sourceforge community, I come from a Matlab environment so I am used to plotting matrices that contain NaN elements. This is very useful because in some cases one doesn't have data for the entire matrix. If one tries plotting the data, the NaN elements won't be plotted. Is there a similar

Re: [Matplotlib-users] Plotting Matlab NaNs in matplotlib

2008-04-19 Thread Eric Firing
Fernando, Your example works as you describe on recent matplotlib versions. I suspect you are using an old one. The preferred way of handling missing points in numpy, and therefore in matplotlib and pylab, however, is via masked arrays. import pylab import numpy as np from numpy import ma a

Re: [Matplotlib-users] Custom Pie-Like Marker In Scatter

2008-04-19 Thread Andrea Gavana
Hi Manuel, On Fri, Apr 18, 2008 at 8:49 AM, Manuel Metz wrote: Andrea Gavana wrote: Hi All, I was wondering about custom markers in the scatter method, and I thought to ask here for some suggestions. Basically, I have 3 variables to show, which are oil, gas and water production. I

[Matplotlib-users] [n00b] removing y axis and keeping x

2008-04-19 Thread Daniel Fetchinson
I'm a total beginner to matplotlib so please forgive me if this is standard stuff. I've read through the user guide, tutorial, searched all over the place but couldn't figure it out on my own. Normally, matplotlib puts the graph in a box, left y axis, bottom x axis, right y axis, top x axis. What

Re: [Matplotlib-users] [n00b] removing y axis and keeping x

2008-04-19 Thread Eric Firing
Daniel Fetchinson wrote: I'm a total beginner to matplotlib so please forgive me if this is standard stuff. I've read through the user guide, tutorial, searched all over the place but couldn't figure it out on my own. Normally, matplotlib puts the graph in a box, left y axis, bottom x axis,

Re: [Matplotlib-users] [n00b] removing y axis and keeping x

2008-04-19 Thread Daniel Fetchinson
I'm a total beginner to matplotlib so please forgive me if this is standard stuff. I've read through the user guide, tutorial, searched all over the place but couldn't figure it out on my own. Normally, matplotlib puts the graph in a box, left y axis, bottom x axis, right y axis, top x

[Matplotlib-users] AssertionError On ax.draw_artist() ????

2008-04-19 Thread hjc520070
I work matplotlib on wxpython, python2.5. It is wonderful that the following code work faster than canvas.draw(). canvas.restore_region(background) ##Updata three lines and draw it. line.set_data(x,y) ax.draw_artist(line)

Re: [Matplotlib-users] formatter on colorbar ???

2008-04-19 Thread hjc520070
Thanks for Eric Firing's reply to me.The solution is: colorbar(im, extend='both', shrink=0.8,format='%0.1f%%',ticks=locator) The double % in the format string makes it print a single %, and when given a format string, the format kwarg automatically hands it off to a FormatStrFormatter. --