On 14 November 2012 21:05, Bror Jonsson 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
> contourf(arange(4),ar
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 mean
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
Hey Will,
As a user, all I can tell you is that pylab is there for convenience when:
1) quickly and interactively exploring some new data
or
2) making the switch over from matlab or some other numerical analysis
framework.
In general, if you're doing some serious work -- especially work that
you
Claus,
I think you are looking for something in
http://matplotlib.org/api/colors_api.html
-Sterling
On Nov 15, 2012, at 8:24AM, Claus wrote:
> 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
On Thu, Nov 15, 2012 at 12:06 PM, Paul Hobson wrote:
> Hey Will,
>
> As a user, all I can tell you is that pylab is there for convenience when:
> 1) quickly and interactively exploring some new data
> or
> 2) making the switch over from matlab or some other numerical analysis
> framework.
>
> In
Claus,
I agree with Sterling that the colors api page has a great deal of useful
info. However, as another solution to your problem, keep in mind that the
predefined colormaps contained in matplotlib.pyplot.cm return color tuples
when called with a float between 0 and 1. To illustrate with an exte
> 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? Ha
On Thu, Nov 15, 2012 at 2:48 PM, Boris Vladimir Comi
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. I would like t
On Thu, Nov 15, 2012 at 3:24 PM, David Brunell 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 = Cursor(ax, usebli
10 matches
Mail list logo