hi !
lets say i have an array of x,y 100 points and at each
point i have a correspoinding magnitude(of electric field) i want to
generate a contour plot of these intensity and if posible show contourn lines
how can i do these please any thing to start.
an example will be very helpfull
- Mensaje original
De: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Para: matplotlib-users@lists.sourceforge.net
Enviado: domingo, 23 de septiembre, 2007 22:06:00
Asunto: Matplotlib-users Digest, Vol 16, Issue 24
Send Matplotlib-users mailing list submissions to
matplotlib-users@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Matplotlib-users digest..."
Today's Topics:
1. Re: Screen location (John Hunter)
2. Re: Screen location (Christopher Barker)
3. Re: creating a timeline (John Hunter)
4. Legend colours for multiple histograms (Ed Schofield)
5. Re: Legend colours for multiple histograms (Jouni K. Sepp?nen)
6. three-d contour plot(intensity or arrow plot) (yadin Bocuma Rivas)
7. Rv: three-d contour plot(intensity or arrow plot)
(yadin Bocuma Rivas)
8. Re: Rv: three-d contour plot(intensity or arrowplot)
(Jouni K. Sepp?nen)
--
Message: 1
Date: Fri, 21 Sep 2007 11:45:23 -0500
From: "John Hunter" <[EMAIL PROTECTED]>
Subject: Re: [Matplotlib-users] Screen location
To: "Yo mismo Hotmail" <[EMAIL PROTECTED]>
Cc: matplotlib-users@lists.sourceforge.net
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
On 9/21/07, Yo mismo Hotmail <[EMAIL PROTECTED]> wrote:
> Dear John,
>
> First of all, thanks for your response. When I try this
>
> fig = figure()
> fig.canvas.manager.window.move(100,400)
>
> python tells me that window has no attribute move. It's strange because I
> can choose many differents attributes like
Well, the example I posted was for a *gtk* window, not a tk window.
You will need to look at the API for the tk window to make the correct
call. We do not provide an abstract API across the GUI windows we
utilize internally. We give you access to the widget, and if you
want to make GUI specific calls on it, good luck, but this is not
encouraged or supported.
JDH
JDH
--
Message: 2
Date: Fri, 21 Sep 2007 10:06:37 -0700
From: Christopher Barker <[EMAIL PROTECTED]>
Subject: Re: [Matplotlib-users] Screen location
To: John Hunter <[EMAIL PROTECTED]>
Cc: Yo mismo Hotmail <[EMAIL PROTECTED]>,
matplotlib-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
John Hunter wrote:
>> fig = figure()
>> fig.canvas.manager.window.move(100,400)
> Well, the example I posted was for a *gtk* window, not a tk window.
And, for what it's worth, wx spells it "Move()", with a capital "M".
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED]
--
Message: 3
Date: Fri, 21 Sep 2007 12:54:51 -0500
From: "John Hunter" <[EMAIL PROTECTED]>
Subject: Re: [Matplotlib-users] creating a timeline
To: "Ryan Krauss" <[EMAIL PROTECTED]>
Cc: matplotlib-users
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
On 9/20/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> which also gets rid of my bottom x axis and leaves tick marks along
> the top (see attached). How do I get rid of the top tick marks, keep
> the bottom ones, and get the bottom x-axis back?
I think this is what you are looking for:
from pylab import figure, show
fig = figure()
ax = fig.add_subplot(111)
ax.axesFrame.set_data((0,0,1), (1,0,0))
ax.axesPatch.set_edgecolor('white')
ax.xaxis.set_ticks_position('bottom')
ax.yaxis.set_ticks_position('left')
ax.plot(range(10))
show()
--
Message: 4
Date: Sat, 22 Sep 2007 16:53:57 +0100
From: "Ed Schofield" <[EMAIL PROTECTED]>
Subject: [Matplotlib-users] Legend colours for multiple histograms
To: Matplotlib-users@lists.sourceforge.net
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8
Hi all,
I'm superimposing histograms of two data sets on the same axes, using
different colours and alpha transparency in the GtkAGG backend to show
the overlapping regions. If I plot a legend as below, the colours in
both legend entries are the same. Am I doing something wrong?
import matplotlib
matplotlib.use('GTKAgg')
import pylab
pylab.hist(data1, normed=True,