You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
|
2
(1) |
3
(1) |
4
(6) |
5
(12) |
6
(13) |
7
|
|
8
(2) |
9
(21) |
10
(19) |
11
(2) |
12
(9) |
13
(22) |
14
(1) |
|
15
(1) |
16
(12) |
17
(5) |
18
(6) |
19
(7) |
20
(13) |
21
(6) |
|
22
(3) |
23
(14) |
24
(15) |
25
(7) |
26
(16) |
27
(7) |
28
(6) |
|
29
(1) |
30
(12) |
31
(3) |
|
|
|
|
|
From: Bryan C. <br...@co...> - 2006-10-13 20:56:12
|
On Fri, 2006-10-13 at 13:59 -0400, Hubert Fitch wrote: > Hi Everyone! > > I have now been able to use Matplotlib on Window XP platfrom! Thanks > for thiose who helped me to get Enthought Edition installed and > working! > > I have no idea how to do what I have wanted to do for several years. I > will try to describe the plot I need. > I need to be able to include this plot in a Wikki. > > A point on a small circle with radius r0, is spiralling around > (orthogonally) in a larger circle of radius r1, with these two radii > related by r0/r1 = alpha. The smaller circle sweeps around the r1 > radius to create a path, with the point (on r1) locus describing a > torroid coil in the surface of the ring torus. > > This describes the plot when the torus is at-rest, but when the ring > torus is in linear motion, both r0 and r1 change dimensions together, > (keeping the same r0/r1 = alpha ratio), to create an increasing or > decreasing spiralling circular helix, that is a fuction of the mass > energy created by this motion. The point on the r0 circle is "like a > snake chasing its tail?" > > When the torus is at-rest, the toroid path is closed, but in-motion, > the torroid is open and becomes an increasing or decreasing spiral. > This path will collapse back to a larger size if the energy is > decreasing, and shrink to a smaller size if the energy is increasing. > > If the at-rest motion plot can be created ( I know that I can't do > this plot by myself), then an animation of the ring torus figure > moving through space to create a spiral would help in visualizing this > figure. If this animation can slow down or speed up this would be > great.. Hmmm interesting .... It's hard to follow your text description, but I think what you're describing is at least a 3D visualisation, so matplotlib isn't ideal for the task. Can you put this into equations? I'm not clear if your at-rest plot should be a "trajectory" for a point moving round the torus If you're willing to learn a new toolkit, this is a good task for VTK (www.vtk.org). It's included in the enthought python distribution. The problem here is that you almost certainly need to buy the user-guide and/or the VTK text book to learn how to use it. VTK is very powerful, but rather complex to learn. Maybe this is a good task for VPython (http://www.vpython.org/ ). I've never used this myself, but if looks well suited to this kind of dynamic visualisation and is less intimidating than VTK (although it's built on VTK I think). Well below is a script to render a "coil" in 3D. It's too much work for me to figure out the vector/matrix algebra to calculate the trajectory you describe, but hopefully you get the idea: replace my 'trajectory' function with whatever is appropriate for what you want. Maybe this will get you started. HTH Bryan ----------------------------------------------------------------------- """ Draws a coil in 3D. Mouse click to rotate the view. Hit 'u' to start the animation (kill the program to stop it!) """ import vtk import math import time offset = 0.0 #I'm going to use this to 'animate' the figure def trajectory(t): """ returns 3D positions, as a function of one parameter, t """ global offset r1 = 1.0 r0 = 0.2 omega=5.0 z = r1*math.sin(omega*t+offset) y = r1*math.cos(omega*t+offset) x = 0.5*t return (x,y,z) s = vtk.vtkProgrammableSource() def Execute(): """The Execute method to be called by the source object""" #make a range of parameter values tVals = numpy.arange(0,2*math.pi,0.05) #convert these to positions positions = [trajectory(t) for t in tVals] #construct a VTK polydata object: a single poly-line 'cell' dataset = s.GetPolyDataOutput() points = vtk.vtkPoints() cells = vtk.vtkCellArray() cells.InsertNextCell(len(positions)) for p in positions: id = points.InsertNextPoint(*p) cells.InsertCellPoint(id) dataset.SetPoints(points) dataset.SetLines(cells) return dataset s.SetExecuteMethod(Execute) #convert (poly)lines to a tube t = vtk.vtkTubeFilter() t.SetInput(s.GetOutput()) t.SetRadius(0.05) t.SetNumberOfSides(10) #make surface normals, so it renders smooth n = vtk.vtkPolyDataNormals() n.SetInput(t.GetOutput()) #boiler-plate VTK stuff.... m=vtk.vtkPolyDataMapper() m.SetInput(n.GetOutput()) a=vtk.vtkActor() a.SetMapper(m) ren = vtk.vtkRenderer() ren.AddActor(a) renwin = vtk.vtkRenderWindow() renwin.AddRenderer(ren) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renwin) #add a simple animation routine, activated by the 'u' keypress def Animate(obj, evt): global offset while 1: #need to kill the program to quit offset += 0.1 s.Modified() renwin.Render() time.sleep(0.05) iren.AddObserver("UserEvent", Animate) iren.Initialize() iren.Start() > > Can anyone help me to create this plot? > > Thanks for any help! > > Hubert fitch > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: morovia m. <jal...@go...> - 2006-10-13 18:38:00
|
Hello
After compiling and installing matplotlib-0.87.6, when I entered,
from pylab import *
it returned the following errors.
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/morovia/bin/lib/python2.4/site-packages/pylab.py", line 1, in
?
from matplotlib.pylab import *
File"/home/morovia/bin/lib/python2.4/site-packages/matplotlib/pylab.py",
line220, in ?
new_figure_manager, draw_if_interactive, show = pylab_setup()
File
"/home/morovia/bin/lib/python2.4/site-packages/matplotlib/backends/__init__.py",
line 23, in pylab_setup
globals(),locals(),[backend_name])
File
"/home/morovia/bin/lib/python2.4/site-packages/matplotlib/backends/backend_tkagg.py",
line 8, in ?
import tkagg # Paint image to Tk photo blitter extension
File
"/home/morovia/bin/lib/python2.4/site-packages/matplotlib/backends/tkagg.py",
line 1, in ?
import _tkagg
ImportError: matplotlib/backends/_tkagg.so: undefined symbol: XFreePixmap
********************************************************************************************************************************
looks like I need to include X11 libraries,
Kindly inform me where I need to modify.
Thanks
Best regards
Morovia.
|
|
From: Hubert F. <pho...@co...> - 2006-10-13 18:00:05
|
Hi Everyone! I have now been able to use Matplotlib on Window XP platfrom! Thanks for = thiose who helped me to get Enthought Edition installed and working! I have no idea how to do what I have wanted to do for several years. I = will try to describe the plot I need. I need to be able to include this plot in a Wikki. A point on a small circle with radius r0, is spiralling around = (orthogonally) in a larger circle of radius r1, with these two radii = related by r0/r1 =3D alpha. The smaller circle sweeps around the r1 = radius to create a path, with the point (on r1) locus describing a = torroid coil in the surface of the ring torus.=20 This describes the plot when the torus is at-rest, but when the ring = torus is in linear motion, both r0 and r1 change dimensions together, = (keeping the same r0/r1 =3D alpha ratio), to create an increasing or = decreasing spiralling circular helix, that is a fuction of the mass = energy created by this motion. The point on the r0 circle is "like a = snake chasing its tail?" When the torus is at-rest, the toroid path is closed, but in-motion, the = torroid is open and becomes an increasing or decreasing spiral. This = path will collapse back to a larger size if the energy is decreasing, = and shrink to a smaller size if the energy is increasing. If the at-rest motion plot can be created ( I know that I can't do this = plot by myself), then an animation of the ring torus figure moving = through space to create a spiral would help in visualizing this figure. = If this animation can slow down or speed up this would be great.. Can anyone help me to create this plot? Thanks for any help! Hubert fitch |
|
From: Jake E. <jak...@on...> - 2006-10-13 17:35:04
|
Hanno, I wrestled with this one for a while. The attached script is the result of my effort. The two keys were to define the colormap, and then make sure that when you call the colormap that the values span the full range. For example, if you want a data point to be "yellow", and that color (RGB: 1,1,0) is between 0.75 and 0.85 on your colormap, then give the point a value of 0.81 (or whatever in the range). Then be sure to also pass a zero (0.0) and a one (1.0) to the scatter. By spanning the full scale range you will be sure to fix the color that you want from the colormap to the data point that you define. It might be a hack, but it works ok. Cheers, Jake -----Original Message----- From: Louis Pecora [mailto:pe...@an...]=20 Sent: Friday, October 13, 2006 7:47 AM To: mat...@li... Subject: Re: [Matplotlib-users] plot x y value(x,y) Hanno Klemm wrote: > Hi Louis, > > sorry for being unclear. What I have is a list of data points given in > the format > > x y value > > so my array looks like > > x_1, y_1, v_1 > x_2, y_2, v_2, > > etc. > > Now I want to plot a point at (x_i, y_i) and assign to it a color=20 > according to v_i. The problem is, that the values at x and y are given > and are not calculated. > > Christian's suggestion with a scatter plot works fine for me, but if=20 > there are other possibilities I'm always keen to learn something. > > Hope this clarifies matters. > > Best regards, > Hanno > > =20 Got it. Yes, sounds like you want a "3D" scatter plot. v (at some "height) over the surface of x,y points. There is a contour in matplotlib, but I don't think it will do what you want. I will go back and look over matplotlib. You might want to go to the matplotlib web site and download the examples. There are tons of them. Maybe one is right for you. -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: pe...@an... |
|
From: Louis P. <pe...@an...> - 2006-10-13 15:36:26
|
Hanno Klemm wrote: > Louis, > > my problem has been solved with your hint to contour and contourf. > > Thanks again, > Hanno > > > > Glad that helped although I wasn't sure. Your post did make me realize that a 3D scatter plot with option to connect points is a good idea. In my quick glance at the examples, I didn't see it, but I often have data that I want to plot as 3D points or line segments, i.e. as parametric plots, e.g. x,y,z positions of an object as a function of time. I'll have to look over matplotlib to see if this is doable. It would be nice. -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: pe...@an... |
|
From: John H. <jdh...@ac...> - 2006-10-13 15:07:31
|
>>>>> "Ryan" == Ryan May <rm...@ou...> writes:
Ryan> Looking at the FigureImage class in image.py, make_image
Ryan> doesn't seem to have any clue about the magnification
Ryan> parameter. This call is in figure.py, and not the demo
Ryan> code, so it would appear to be a bug in the library. Any
Ryan> idea what's wrong?
Should be fixed in svn.
JDH
|
|
From: Ryan M. <rm...@ou...> - 2006-10-13 14:56:05
|
Hi,
I've been playing with the matplotlib demos (very impressive btw.) and
I've found that figimage_demo.py and pcolor_nonuniform.py give
exceptions on my computer. Here's the last part of the backtrace for
pcolor_nonuniform.py:
Traceback (most recent call last):
File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
line 284, in expose_event
self._render_figure(self._pixmap, w, h)
File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py",
line 73, in _render_figure
FigureCanvasAgg.draw(self)
File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 392, in draw
self.figure.draw(renderer)
File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line
545, in draw
for a in self.axes: a.draw(renderer)
File "/usr/lib64/python2.4/site-packages/matplotlib/axes.py", line
1067, in draw
a.draw(renderer)
File "/usr/lib64/python2.4/site-packages/matplotlib/image.py", line
189, in draw
im = self.make_image(renderer.get_image_magnification())
TypeError: make_image() takes exactly 1 argument (2 given)
Looking at the FigureImage class in image.py, make_image doesn't seem to
have any clue about the magnification parameter. This call is in
figure.py, and not the demo code, so it would appear to be a bug in the
library. Any idea what's wrong?
Thanks,
Ryan
--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
rm...@ro...
|
|
From: Hanno K. <kl...@ph...> - 2006-10-13 14:08:29
|
Yes, actually that's even better for what I want. However, after manipulating the Z values into a 2d array, I can then just as well use imshow to view their values. So I'll stick to the scatter plot approach for unevenly spaced data and to the contour/imshow approach for evenly gridded data. Thanks again, Hanno Christian Meesters <mee...@un...> said: > I think Louis' idea of using contour plots for your problem is not that bad. > It depends, of course, on the actual meaning of your data ... > > Assume you understand German? Have a look here: > http://www.python-forum.de/topic-5294.html > > Christian > > On Friday 13 October 2006 15:19, Hanno Klemm wrote: > > Hi Louis, > > > > sorry for being unclear. What I have is a list of data points given in > > the format > > > > x y value > > > > so my array looks like > > > > x_1, y_1, v_1 > > x_2, y_2, v_2, > > > > etc. > > > > Now I want to plot a point at (x_i, y_i) and assign to it a color > > according to v_i. The problem is, that the values at x and y are given > > and are not calculated. > > > > Christian's suggestion with a scatter plot works fine for me, but if > > there are other possibilities I'm always keen to learn something. > > > > Hope this clarifies matters. > > > > Best regards, > > Hanno > > > > Louis Pecora <pe...@an...> said: > > > Christian Meesters wrote: > > > > Hi, > > > > > > > > No stupid question at all! I don't really understand your > > > > question, but it > > > > > > sounds to me like a scatter plot is what you want. In that case, > > > > just have a > > > > > > look at the scatter plot demos on the web page (-> screenshots) or > > > > in the > > > > > > example files. > > > > > > > > HTH > > > > Christian > > > > > > Actually sounds more like a surface or contour plot. You have x, y, > > > > and > > > > > z where z=function of (x,y). I thought there was a contour call in > > > matplotlib. I'll look. > > > > > > -- > > > Cheers, > > > > > > Lou Pecora > > > > > > Code 6362 > > > Naval Research Lab > > > Washington, DC 20375 > > > USA > > > Ph: +202-767-6002 > > > email: pe...@an... > > > > ------------------------------------------------------------------------- > > > > > Using Tomcat but need to do more? Need to support web services, > > > > security? > > > > > Get stuff done quickly with pre-integrated technology to make your > > > > job easier > > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > > > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Matplotlib-users mailing list > > > Mat...@li... > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Hanno Klemm kl...@ph... |
|
From: Lionel R. <lro...@li...> - 2006-10-13 14:07:57
|
Hi all, after some suggestions, here is the latest version of windrose. Now, keywords args are passed by **kwargs, "bar" style have a "opening" arg for controlling the sectors angles, legends are positionned with "legendloc" and their size with "legendsize", and box are not displayed anymore. Hope you find it usefull, any comments welcome. Cordialement -- Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
|
From: Louis P. <pe...@an...> - 2006-10-13 13:46:43
|
Hanno Klemm wrote: > Hi Louis, > > sorry for being unclear. What I have is a list of data points given in > the format > > x y value > > so my array looks like > > x_1, y_1, v_1 > x_2, y_2, v_2, > > etc. > > Now I want to plot a point at (x_i, y_i) and assign to it a color > according to v_i. The problem is, that the values at x and y are given > and are not calculated. > > Christian's suggestion with a scatter plot works fine for me, but if > there are other possibilities I'm always keen to learn something. > > Hope this clarifies matters. > > Best regards, > Hanno > > Got it. Yes, sounds like you want a "3D" scatter plot. v (at some "height) over the surface of x,y points. There is a contour in matplotlib, but I don't think it will do what you want. I will go back and look over matplotlib. You might want to go to the matplotlib web site and download the examples. There are tons of them. Maybe one is right for you. -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: pe...@an... |
|
From: Christian M. <mee...@un...> - 2006-10-13 13:27:53
|
I think Louis' idea of using contour plots for your problem is not that bad. It depends, of course, on the actual meaning of your data ... Assume you understand German? Have a look here: http://www.python-forum.de/topic-5294.html Christian On Friday 13 October 2006 15:19, Hanno Klemm wrote: > Hi Louis, > > sorry for being unclear. What I have is a list of data points given in > the format > > x y value > > so my array looks like > > x_1, y_1, v_1 > x_2, y_2, v_2, > > etc. > > Now I want to plot a point at (x_i, y_i) and assign to it a color > according to v_i. The problem is, that the values at x and y are given > and are not calculated. > > Christian's suggestion with a scatter plot works fine for me, but if > there are other possibilities I'm always keen to learn something. > > Hope this clarifies matters. > > Best regards, > Hanno > > Louis Pecora <pe...@an...> said: > > Christian Meesters wrote: > > > Hi, > > > > > > No stupid question at all! I don't really understand your > > question, but it > > > > sounds to me like a scatter plot is what you want. In that case, > > just have a > > > > look at the scatter plot demos on the web page (-> screenshots) or > > in the > > > > example files. > > > > > > HTH > > > Christian > > > > Actually sounds more like a surface or contour plot. You have x, y, > > and > > > z where z=function of (x,y). I thought there was a contour call in > > matplotlib. I'll look. > > > > -- > > Cheers, > > > > Lou Pecora > > > > Code 6362 > > Naval Research Lab > > Washington, DC 20375 > > USA > > Ph: +202-767-6002 > > email: pe...@an... > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > > security? > > > Get stuff done quickly with pre-integrated technology to make your > > job easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Hanno K. <kl...@ph...> - 2006-10-13 13:19:26
|
Hi Louis, sorry for being unclear. What I have is a list of data points given in the format x y value so my array looks like x_1, y_1, v_1 x_2, y_2, v_2, etc. Now I want to plot a point at (x_i, y_i) and assign to it a color according to v_i. The problem is, that the values at x and y are given and are not calculated. Christian's suggestion with a scatter plot works fine for me, but if there are other possibilities I'm always keen to learn something. Hope this clarifies matters. Best regards, Hanno Louis Pecora <pe...@an...> said: > Christian Meesters wrote: > > Hi, > > > > No stupid question at all! I don't really understand your question, but it > > sounds to me like a scatter plot is what you want. In that case, just have a > > look at the scatter plot demos on the web page (-> screenshots) or in the > > example files. > > > > HTH > > Christian > > > > > > Actually sounds more like a surface or contour plot. You have x, y, and > z where z=function of (x,y). I thought there was a contour call in > matplotlib. I'll look. > > -- > Cheers, > > Lou Pecora > > Code 6362 > Naval Research Lab > Washington, DC 20375 > USA > Ph: +202-767-6002 > email: pe...@an... > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Hanno Klemm kl...@ph... |
|
From: Louis P. <pe...@an...> - 2006-10-13 13:12:58
|
Christian Meesters wrote: > Hi, > > No stupid question at all! I don't really understand your question, but it > sounds to me like a scatter plot is what you want. In that case, just have a > look at the scatter plot demos on the web page (-> screenshots) or in the > example files. > > HTH > Christian > > Actually sounds more like a surface or contour plot. You have x, y, and z where z=function of (x,y). I thought there was a contour call in matplotlib. I'll look. -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: pe...@an... |
|
From: Christian M. <mee...@un...> - 2006-10-13 12:34:00
|
Hi, No stupid question at all! I don't really understand your question, but it sounds to me like a scatter plot is what you want. In that case, just have a look at the scatter plot demos on the web page (-> screenshots) or in the example files. HTH Christian On Friday 13 October 2006 14:25, Hanno Klemm wrote: > Hi, > > this is probably a stupid question, but somehow I just can't figure > out how to do it. I have data given in an array with entries: > > x y data(x,y) > > and thus of shape (#data points, 3) > > what is the easiest way with mpl to plot these data points, susch that > they are located at x,y and colored according to data(xy)? > > Thanks for any pointers, > Hanno |
|
From: Hanno K. <kl...@ph...> - 2006-10-13 12:25:46
|
Hi, this is probably a stupid question, but somehow I just can't figure out how to do it. I have data given in an array with entries: x y data(x,y) and thus of shape (#data points, 3) what is the easiest way with mpl to plot these data points, susch that they are located at x,y and colored according to data(xy)? Thanks for any pointers, Hanno -- Hanno Klemm kl...@ph... |
|
From: Charlie M. <cw...@gm...> - 2006-10-13 12:15:53
|
Edit your "~/.matplotlib/matplotlibrc" file to specify the default.
On OSX WXAgg or TkAgg is the best bet.
On 10/12/06, Louis Pecora <pe...@an...> wrote:
>
> In order get pylab to work on my Mac I have to do the following (found
> by some experimenting):
>
> import matplotlib
> matplotlib.use("WXAgg")
> import pylab
>
> Does this seem right? I mean, it works, but it seems to be a little
> gymnastics to go through rather than just doing
>
> import pylab
>
> which gives
>
> ImportError: No module named gobject
>
> since it can't seem to find that backend in the "backend" directory when
> it tries to import backend_gtkagg.py. I guess that doesn't work on the
> Mac.
>
>
> My setup: (Tiger 10.4) Al Laptop, Python 2.4, latest pylab from SciPy
> package.
>
> --
> Cheers,
>
> Lou Pecora
>
> Code 6362
> Naval Research Lab
> Washington, DC 20375
> USA
> Ph: +202-767-6002
> email: pe...@an...
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Lionel R. <lro...@li...> - 2006-10-13 08:55:21
|
Le vendredi 13 octobre 2006 08:26, Derek a =E9crit=A0: > Lionel Roubeyrie <lroubeyrie@...> writes: > > Hi all, > > continuing on the windroses, here the third version of windrose.py, with > > two others styles (line and bar2 (is it what you want Derek?)). I want = to > > know how it's possible to modify the legends to be on axes, and not on > > the figure like in the ex4.png subplots example. > > Lionel > > Looks great! Is it possible to change the size/position of the legend - > the fonts certainly seem too big, and the whole box overlaps the figure. > > Derek Hi Derek, yes it's possible, with: freq,ax=3Dwindrose.windplot(vent['VV'],vent['DV'],counts=3DFalse,speed_clas= ses=3D[1,2,3,4,5],sectors=3D16,style=3D'bar') draw() fig=3Dax.get_figure() for leg in fig.legends: setp(leg.get_texts(), fontsize=3D8) > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
|
From: Derek <dh...@cs...> - 2006-10-13 07:00:18
|
Lionel Roubeyrie <lroubeyrie@...> writes: > > Hi all, > continuing on the windroses, here the third version of windrose.py, with two > others styles (line and bar2 (is it what you want Derek?)). I want to know > how it's possible to modify the legends to be on axes, and not on the figure > like in the ex4.png subplots example. Lionel Looks great! Is it possible to change the size/position of the legend - the fonts certainly seem too big, and the whole box overlaps the figure. Derek |
|
From: <zh...@um...> - 2006-10-13 01:18:38
|
Hi, everyone: is there any function in any libraray to do a multidimensional downhill minimization for a given function? Thanks |
|
From: Stefan v. d. W. <st...@su...> - 2006-10-13 00:47:50
|
On Thu, Oct 12, 2006 at 07:00:05PM -0500, John Hunter wrote: > >>>>> "Stefan" =3D=3D Stefan van der Walt <st...@su...> writes: > Stefan> if hasattr(val, 'size') and val.size > 6: >=20 > This looks like a numpy vs numeric thing here so we want to make sure > the solution works across packages. This is an attempt to pretty > print an array that is long by snipping it. The problem slips in when you have a scalar, which has attribute 'shape' but no length. The above line works for Numeric, but I don't have numarray to test on. > Stefan> Now on to my real question. Say I have a screen of 4x4 > Stefan> subplots, created with subplot(221). I'd like to be able > Stefan> to split the screen as such: __ __ > Stefan> | | | > Stefan> | | | > Stefan> |--| | > Stefan> | | | > Stefan> |__|__| >=20 > Stefan> I.e., to draw in the window on the right: >=20 > ax1 =3D subplot(221) > ax2 =3D subplot(223) > ax3 =3D subplot(122) That is so simple I never even expected it to work! Thanks a lot. Cheers St=E9fan |
|
From: John H. <jdh...@ac...> - 2006-10-13 00:00:41
|
>>>>> "Stefan" == Stefan van der Walt <st...@su...> writes:
Stefan> One way to fix this would be to change line 379 in
Stefan> artist.py from
Stefan> if hasattr(val, 'shape') and len(val)>6:
Stefan> to
Stefan> if hasattr(val, 'size') and val.size > 6:
This looks like a numpy vs numeric thing here so we want to make sure
the solution works across packages. This is an attempt to pretty
print an array that is long by snipping it.
Stefan> Now on to my real question. Say I have a screen of 4x4
Stefan> subplots, created with subplot(221). I'd like to be able
Stefan> to split the screen as such: __ __
Stefan> | | |
Stefan> | | |
Stefan> |--| |
Stefan> | | |
Stefan> |__|__|
Stefan> I.e., to draw in the window on the right:
ax1 = subplot(221)
ax2 = subplot(223)
ax3 = subplot(122)
should do it.
JDH
|