[Matplotlib-users] 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 ambientalista! Encuentra consejos para cuidar el lugar donde vivimos. http://telemundo.yahoo.com/promos/mejorambientalista.html- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Rv: three-d contour plot(intensity or arrow plot)
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- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Rv: three-d contour plot(intensity or arrow plot)
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/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'
Hello, When using usetex=True and savefig(file, facecolor='w', edgecolor='w') The behavior of the generated EPS file is more like: facecolor=None edgecolor='w' That is, the image's facecolor is tranparent...taking on the background color of the latex document---while the edgecolor is definitely white. This seems inconsistent to me, and I was wondering if there was a quick solution. I actually like that the facecolor is transparent (or nonexistent)...and I would like the same to hold for the edgecolor. As of now, I have an ugly white border around my image. Also, it seems like there needs to be an extra keyword or option. Suppose someone wanted a white facecolor in the (usetex=True) EPS file. It doesn't seem like this is currently possible. It would be nice if I could specify: savefig(file, facecolor=None, edgecolor=None) Thoughts? \documentclass{article} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \psframe*[linecolor=blue](-10in,-10in)(10in,10in) \includegraphics{test} from matplotlib import rc, rcParams rc('text', usetex=True) rc('ps', usedistiller='xpdf') from pylab import * subplot(111,axisbg='red') plot(range(10)) savefig('test.eps', facecolor='white', edgecolor='white') - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] 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: "[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,
Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'
On 9/23/07, Tom Johnson <[EMAIL PROTECTED]> wrote: > > > Also, it seems like there needs to be an extra keyword or option. Suppose > someone wanted a white facecolor in the (usetex=True) EPS file. It doesn't > seem like this is currently possible. It would be nice if I could specify: > > savefig(file, facecolor=None, edgecolor=None) It would also be nice if we could specify the axis background color to be None as well (again, perhaps only useful when creating an EPS)...when using the plot command. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] contour or intensity plot.
yadin Bocuma Rivas <[EMAIL PROTECTED]> writes: > i want to generate a contour plot [...] an example will be very > helpfull Please see examples/contour_demo.py in the matplotlib distribution and http://matplotlib.sourceforge.net/matplotlib.pylab.html#-contour -- 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/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users