Pablo Romero writes:
> quick numpy-related question.
Not the best mailing list then, but...
> I want to use numpy.arange() to create multiple arrays, and then I
> want to join these arrays (or individual elements) to the final array
> without repeating existing elements (create a 'union' from 2
Use Python set and then convert to numpy array?
Pablo Romero
18/03/2009 01:50 PM
To
cc
Subject
[Matplotlib-users] quick numpy question
quick numpy-related question.
I want to use numpy.arange() to create multiple arrays, and then I want to
join these arrays (or individual elemen
quick numpy-related question.
I want to use numpy.arange() to create multiple arrays, and then I want to join
these arrays (or individual elements) to the final array without repeating
existing elements (create a 'union' from 2 or more arrays or individual
elements).
example:
lev=np.arange(
Jae-Joon Lee wrote:
> Reading Eric's reply on the previous email, my impression is that
> contourf is not supposed to draw the boundary (no stroke!). But it
> seems it still does.
>
> for c in cs.collections:
> c.set_edgecolor("none")
>
> After this, I can get rid of the vertical lines.
> I c
John Hunter-4 wrote:
>
> On Mon, Mar 16, 2009 at 1:52 PM, GKalman wrote:
>
>>
>> I need a reference to a "How to..." (or a sample code) to changing the
>> color
>> (Default or otherwise) of the Canvas, when plotting with matplotlib,
>> using
>> Python 2.5 on Windows.
>
> Thanks John,
>
> I
On Sat, Mar 14, 2009 at 12:22 PM, per freem wrote:
> hi all,
>
> i have a set of about 100-500 points that i'd like to color in different
> colors. i tried the following, using the c= argument to the scatter command:
>
> x = rand(200)
> scatter(x, x, c=xrange(1,201))
>
> however, only a handful o
On Mon, Mar 16, 2009 at 1:52 PM, GKalman wrote:
>
> I need a reference to a "How to..." (or a sample code) to changing the
> color
> (Default or otherwise) of the Canvas, when plotting with matplotlib, using
> Python 2.5 on Windows.
When creating your figure, just pass the facecolor you want
On Tue, Mar 17, 2009 at 2:18 AM, David Simpson wrote:
>
> Now (from ipython):
> In [41]: plotfile("tester.txt",cols=(0,1))
> ---
> IndexErrorTraceback (most recent call last)
>
>
>
> )
>
I need a reference to a "How to..." (or a sample code) to changing the color
(Default or otherwise) of the Canvas, when plotting with matplotlib, using
Python 2.5 on Windows.
--
View this message in context:
http://www.nabble.com/pylab-matplotlib-canvas-background-color-change...-tp22541479p22
Just getting back to work after an illness...
Eric's assessment is 100% correct: the transform kwarg is ignored by
images. It probably could be, but it would not be trivial, particularly
in the way the Agg backend is currently architected. This should
probably be added as a feature request to
Thanks,
Its good to know that it IS possible to set the Z-order for contours (I didnt
think it was possible).
In any case, I solved this by setting the Z-order in my fillcontinents() and
drawcoastlines() calls, and setting them to '100' and '101' respectively
(assuming these numbers were high
Reading Eric's reply on the previous email, my impression is that
contourf is not supposed to draw the boundary (no stroke!). But it
seems it still does.
for c in cs.collections:
c.set_edgecolor("none")
After this, I can get rid of the vertical lines.
I can see slight gaps between filled regi
Hi,
I can't get the plotfile command to work on a simple file. I have
a file"tester.txt" which looks like:
1 0.2137 0.2139 0.2138
2 0.3969 0.3970 0.4003
3 0.4391 0.4396 0.4382
4 1.0020
Jouni K. Seppänen wrote:
> Pablo Romero writes:
>
>> How can I go about correcting this, so that the 'basemap.contour()'
>> function draws the contours BEFORE drawing the coastlines & filled
>> continents?
>
> Use appropriate zorder arguments in your method calls:
>
> http://matplotlib.sourcefo
Pablo Romero wrote:
>
> Im having an issue where contourf is producing visible defects in the shaded
> contours (within png output) with alpha values that are less then 1.0.
>
Pablo,
See
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg10245.html
and my reply to that.
I
15 matches
Mail list logo