Re: [Matplotlib-users] Gap when using contourf and nan's

2012-11-15 Thread Ian Thomas
On 14 November 2012 21:05, Bror Jonsson brorl...@gmail.com wrote: Dear all, I'm trying to to show where one set of values have NaN's on the contour plot of another set of values. I do this by creating a mask as such: fld = randn(4,4) fld[:2,:2] = np.nan mask[mask==0] = np.nan

[Matplotlib-users] numpy.power vs pylab.power

2012-11-15 Thread Will Furnass
On my machine these are rather confusingly different functions, with the latter corresponding to numpy.random.power. I appreciate that pylab imports everything from both the numpy and numpy.random modules but wouldn't it make sense if pylab.power were the oft-used power function rather than a

[Matplotlib-users] discrete colors from colormap for plt.plot and plt.scatter

2012-11-15 Thread Claus
Hi, I have this issue, schematically: import numpy as np import matplotlib.pyplot as plt x = np.linspace(0.0, a, b) for i in range(d): y1 = f1(x, p1_i, p2_i) y2 = f2(x, p1_i, p2_i) plt.scatter(x, y1, c=color[i]) plt.plot(x, y2, '-', c=color[i] my question: how

Re: [Matplotlib-users] Plot multiple lines

2012-11-15 Thread Ethan Gutmann
1. How to open excel file in python? You can read excel files with the xlrd module : http://www.python-excel.org/ However, you may want to simply read your exported CSV files. 2. I would like to plot multiple line joining the positions of each of the events, it is possible to do this? Have

Re: [Matplotlib-users] Plot multiple lines

2012-11-15 Thread Paul Hobson
On Thu, Nov 15, 2012 at 2:48 PM, Boris Vladimir Comi gle...@comunidad.unam.mx wrote: Hi all: I have begun to learn about python / matplolib / basemap and really need some help. My data is in an Excel workbook in format .xls or csv(see attached): 1. How to open excel file in python? 2.

Re: [Matplotlib-users] Figure zoom crosshair color

2012-11-15 Thread Paul Ivanov
On Thu, Nov 15, 2012 at 3:24 PM, David Brunell quantal...@gmail.com wrote: Hello Paul, Thanks so much for your carefully-crafted reply. I had a hunch that it would not be a simple matter. I'm using wxAgg for the backend. I ended up using a Matplotlib widget cursor like this: cursor =