contour or intensity plot.

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: “matplotlib-users-request@lists.sourceforge.netmatplotlib-users-request@lists.sourceforge.net
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@…1543…rge.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
matplotlib-users-request@lists.sourceforge.net

You can reach the person managing the list at
matplotlib-users-owner@lists.sourceforge.net

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” <jdh2358@…287…>
Subject: Re: [Matplotlib-users] Screen location
To: “Yo mismo Hotmail” <miqueltfc@…287…>
Cc: matplotlib-users@…564…net
Message-ID:
<88e473830709210945m2656ae4apb17dec9f88c8d0bd@…288…>
Content-Type: text/plain; charset=ISO-8859-1

On 9/21/07, Yo mismo Hotmail <miqueltfc@…287…> 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 <Chris.Barker@…259…>
Subject: Re: [Matplotlib-users] Screen location
To: John Hunter <jdh2358@…287…>
Cc: Yo mismo Hotmail <miqueltfc@…287…>,
matplotlib-users@lists.sourceforge.net
Message-ID: <46F3FA1D.2030706@…259…>
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

Chris.Barker@…259…


Message: 3
Date: Fri, 21 Sep 2007 12:54:51 -0500
From: “John Hunter” <jdh2358@…287…>
Subject: Re: [Matplotlib-users] creating a timeline
To: “Ryan Krauss”
<ryanlists@…287…>
Cc: matplotlib-users <matplotlib-users@…431…ists.sourceforge.net>
Message-ID:
<88e473830709211054u4f34650i83797cb4a60933b1@…288…>
Content-Type: text/plain; charset=ISO-8859-1

On 9/20/07, Ryan Krauss <ryanlists@…120…287…> 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” <edschofield@…878…287…>
Subject: [Matplotlib-users] Legend colours for multiple histograms
To: Matplotlib-users@lists.sourceforge.net
Message-ID:
<1b5a37350709220853m5ef951ach1dd6ca6d406159d8@…1737…>
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 <jks@…397…>
Subject: Re: [Matplotlib-users] Legend colours for multiple histograms
To: matplotlib-users@…1738…net
Message-ID: <m2lkayld42.fsf@…397…>
Content-Type: text/plain; charset=iso-8859-1

“Ed Schofield” <edschofield@…287…> 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 <conra2004@…9…>
Subject: [Matplotlib-users] three-d
contour plot(intensity or arrow
plot)
To: matplotlib-users@lists.sourceforge.net, vtkusers@…1732…
Message-ID: <944999.95047.qm@…1733…>
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 <conra2004@…9…>
Subject: [Matplotlib-users] Rv: three-d contour plot(intensity or
arrow plot)
To: matplotlib-users@lists.sourceforge.net
Message-ID: <553133.33870.qm@…1734…>
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 <conra2004@…9…>
Para: matplotlib-users@…1739…ge.net; vtkusers@…1732…
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
<jks@…397…>
Subject: Re: [Matplotlib-users] Rv: three-d contour plot(intensity or
arrow plot)
To: matplotlib-users@lists.sourceforge.net
Message-ID: <m26421m9y0.fsf@…397…>
Content-Type: text/plain; charset=iso-8859-1

yadin Bocuma Rivas <conra2004@…9…>
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@…563…eforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

End of Matplotlib-users Digest, Vol 16, Issue 24



¡Sé un mejor besador!
Comparte todo lo que sabes sobre besos en: