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 arrow plot)
(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 <matplotlib-users@lists.sourceforge.net>
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, alpha=0.8)
pylab.hist(data2, normed=True, alpha=0.5, fc='yellow')
pylab.legend(["data 1", "data 2"])
pylab.show()
If I try this instead:
pylab.hist(data1, normed=True, alpha=0.8, label="data 1")
pylab.hist(data2, normed=True, alpha=0.5, fc="yellow", label="data 2")
pylab.legend()
pylab.show()
the legend entries are now coloured correctly, but there is one label
entry for each bin, which is not particularly useful.
I'm using the latest SVN version of matplotlib (r3874).
I'd appreciate any comments and/or quick workarounds!
-- Ed
------------------------------
Message: 5
Date: Sat, 22 Sep 2007 22:22:05 +0300
From: Jouni K. Sepp?nen <[EMAIL PROTECTED]>
Subject: Re: [Matplotlib-users] Legend colours for multiple histograms
To: matplotlib-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1
"Ed Schofield" <[EMAIL PROTECTED]> writes:
> If I plot a legend as below, the colours in both legend entries are
> the same. Am I doing something wrong?
> pylab.hist(data1, normed=True, alpha=0.8)
> pylab.hist(data2, normed=True, alpha=0.5, fc='yellow')
> pylab.legend(["data 1", "data 2"])
Here's a workaround that probably explains why this is happening:
_, _, h1 = pylab.hist(data1, normed=True, alpha=0.8)
_, _, h2 = pylab.hist(data2, normed=True, alpha=0.5, fc='yellow')
pylab.legend([h1[0], h2[0]], ["data 1", "data 2"])
By default, the legend function assigns a legend entry to every patch in
the figure. Perhaps this could be seen as a bug in (hist or) legend, but
I don't know how to fix it without introducing difficulties in other
cases.
--
Jouni K. Sepp?nen
http://www.iki.fi/jks
------------------------------
Message: 6
Date: Sun, 23 Sep 2007 12:06:50 -0700 (PDT)
From: yadin Bocuma Rivas <[EMAIL PROTECTED]>
Subject: [Matplotlib-users] three-d contour plot(intensity or arrow
plot)
To: matplotlib-users@lists.sourceforge.net, [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
hi !
I have an array of x,y,z 100 points(in tree-d) 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 arrowsat every point)
how can i do these please any thing to start.....
an example will be very helpfull
____________________________________________________________________________________
?S? un mejor ambientalista!
Encuentra consejos para cuidar el lugar donde vivimos.
http://telemundo.yahoo.com/promos/mejorambientalista.html
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 7
Date: Sun, 23 Sep 2007 12:20:16 -0700 (PDT)
From: yadin Bocuma Rivas <[EMAIL PROTECTED]>
Subject: [Matplotlib-users] Rv: three-d contour plot(intensity or
arrow plot)
To: matplotlib-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
every time i try to plot i have these error
how can i avoid it?
Traceback (most recent call last):
File "C:/Python24/contour.py", line 9, in -toplevel-
import matplotlib.axes3d as p3
File "C:\PYTHON24\lib\site-packages\matplotlib\axes3d.py", line 26, in
-toplevel-
import art3d
File "C:\PYTHON24\lib\site-packages\matplotlib\art3d.py", line 17, in
-toplevel-
import proj3d
File "C:\PYTHON24\lib\site-packages\matplotlib\proj3d.py", line 21, in
-toplevel-
cross = nx.cross
AttributeError: 'module' object has no attribute 'cross'
----- Mensaje reenviado ----
De: yadin Bocuma Rivas <[EMAIL PROTECTED]>
Para: matplotlib-users@lists.sourceforge.net; [EMAIL PROTECTED]
Enviado: domingo, 23 de septiembre, 2007 21:06:50
Asunto: three-d contour plot(intensity or arrow plot)
hi !
I have an array of x,y,z 100 points(in tree-d) 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 arrowsat every point)
how can i do these please any thing to start.....
an example will be very helpfull
?S? un mejor asador!
Aprende todo sobre asados en:
http://telemundo.yahoo.com/promos/mejorasador.html
____________________________________________________________________________________
?S? un mejor fot?grafo!
Perfecciona tu t?cnica y encuentra las mejores fotos.
http://telemundo.yahoo.com/promos/mejorfotografo.html
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 8
Date: Sun, 23 Sep 2007 22:57:27 +0300
From: Jouni K. Sepp?nen <[EMAIL PROTECTED]>
Subject: Re: [Matplotlib-users] Rv: three-d contour plot(intensity or
arrow plot)
To: matplotlib-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1
yadin Bocuma Rivas <[EMAIL PROTECTED]>
writes:
> every time i try to plot i have these error
Unfortunately, the 3D plotting capabilities of matplotlib are not being
maintained. A list of Python software for 3D plotting can be found at
http://new.scipy.org/Topical_Software#head-8f49c45f696b5833d161aab95c22e5d495658a44
--
Jouni K. Sepp?nen
http://www.iki.fi/jks
------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
End of Matplotlib-users Digest, Vol 16, Issue 24
************************************************
____________________________________________________________________________________
¡Sé un mejor fotógrafo!
Perfecciona tu técnica y encuentra las mejores fotos.
http://telemundo.yahoo.com/promos/mejorfotografo.html
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users