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: Tommy G. <tg...@ma...> - 2006-10-16 16:34:25
|
Hi,
I figured out that I could get matplotlib 0.87.6 for python 2.4
and have downloaded this and
installed it. It seems to work, except when I try to do this
ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on
Python 2.4.3 (#1, Apr 3 2006, 18:07:18)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import pylab
RuntimeError: module compiled against version 1000002 of C-API but
this version of numpy is 1000000
The import of the numpy version of the nxutils module,
_nsnxutils, failed. This is is either because numpy was
unavailable when matplotlib was compiled, because a dependency of
_nsnxutils could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_nsnxutils was not built, make sure you have a working copy of
numpy and then re-install matplotlib. Otherwise, the following
traceback gives more details:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/pylab.py", line 1, in ?
from matplotlib.pylab import *
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/pylab.py", line 199, in ?
import mlab #so I can override hist, psd, etc...
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/mlab.py", line 64, in ?
import nxutils
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/nxutils.py", line 17, in ?
from matplotlib._ns_nxutils import *
ImportError: numpy.core.multiarray failed to import
>>> import numpy.core
>>> import numpy.core.multiarray
>>> import matplotlib
>>>
My problem is that I have a code:
from math import *
import numpy
from matplotlib import *
filename = options.infname + '_ch1'
im24 = pyImage.Image()
im24.Open(filename)
print filename,im24.avg, im24.max
figim = figure.figure(figsize=(5,5))
figim._resize = False
axsrc24 = figim.add_subplot(111, xlim=(0,200), ylim=(0,200),
autoscale_on=False)
axsrc24.set_title('Click to zoom')
im24.Display(axsrc24)
If I use from pylab import * the figim = figure line works, but since
import pylab fails the
script fails. If I use from matplotlib import * I get this error:
[tgrav@skathi] Spitzer/Objects -> redspit -i Albiorix1v2 -a 8 -z 16
pixel size = -2.45 2.45
Albiorix1v2_ch1 47.6313694642 50.5503692627
Traceback (most recent call last):
File "/Users/tgrav/Work/Astronomy/MyCode/Python/Redspit/
redspit.py", line 95, in ?
main()
File "/Users/tgrav/Work/Astronomy/MyCode/Python/Redspit/
redspit.py", line 50, in main
figim = figure.figure(figsize=(5,5))
NameError: global name 'figure' is not defined
So I am a little confused as to what is going on????
Cheers
Tommy
tg...@ma...
http://homepage.mac.com/tgrav/
"Any intelligent fool can make things bigger,
more complex, and more violent. It takes a
touch of genius -- and a lot of courage --
to move in the opposite direction"
-- Albert Einstein
|
|
From: Tommy G. <tg...@ma...> - 2006-10-16 16:03:50
|
Hi,
I am currently running ActivePython 2.4.3 b11, with numpy 1.12881
and
matplotlib 0.87.4. Running a code developed before I upgraded using the
Scipy Superpack for Mac (PowerPc) available at http://www.scipy.org/
Download
I get this error:
[*****@*******] Spitzer/Objects -> redspit -i Albiorix1v2 -a 8 -z 16
pixel size = -2.45 2.45
Albiorix1v2_ch1 47.6313694642 50.5503692627
alloc: invalid block: 0xa08bcd8: a 68 0
Abort
[*****@******] Spitzer/Objects ->
Anyone know what the deal is? I tried to upgrade to 0.87.6 for
matplotlib, but
that of course failed as I am not running Python 2.5 :(
Cheers
Tommy
tg...@ma...
http://homepage.mac.com/tgrav/
"Any intelligent fool can make things bigger,
more complex, and more violent. It takes a
touch of genius -- and a lot of courage --
to move in the opposite direction"
-- Albert Einstein
|
|
From: <hu...@ya...> - 2006-10-16 14:53:37
|
Hi, I have some problem with this kind of script: #!/usr/bin/env python import numpy import numpy.random import pylab a = numpy.random.rand(10,10) pylab.matshow(a) pylab.colorbar() pylab.figure(figsize=(4.8,8),dpi=100) pylab.imshow(a,aspect='equal',interpolation='nearest') pylab.colorbar() pylab.show() The second figure is not good (at least for my point of view). I was expecting that the colorbar will have the same size than the image, even if aspect is set on equal or a number. Perhaps there are a simple solution for this that I didn't find. Thanks N. |
|
From: John H. <jdh...@ac...> - 2006-10-16 14:06:39
|
>>>>> "Xavier" == Xavier Gnata <gn...@ob...> writes:
Xavier> Hum it looks like a real bug in ./CXX/Objects.hxx Line
Xavier> 1938 should be ~mapref() and not ~mapref<T>() It used to
Xavier> compile bug it is not true any more using gcc version
Xavier> 4.1.2 20061007 (prerelease) (Debian 4.1.1-16) According to
Xavier> C++ iso standard, ~mapref<T>() seems to be wrong code so
Xavier> could you please apply this path?
Thanks for tracking this down -- committed to svn.
JDH
|
|
From: John H. <jdh...@ac...> - 2006-10-16 13:57:22
|
>>>>> "Stefan" == Stefan van der Walt <st...@su...> writes:
Stefan> The size of the image being plotted is (72, 2048), so that
Stefan> behaviour sounds correct. The plot I see is shown here:
Stefan> http://mentat.za.net/results/morlet.png
As Stefan notes, this is a feature not a bug, but it is relatively new
behavior since Mark Bakker and Eric Firing finally provided us with
good aspect handling. The new default is to maintain aspect ratio of
images, but if you want the old behavior, you can pass in
aspect='auto' into your image or set the image.aspect parameter in
your rc file.
JDH
|
|
From: Xavier G. <gn...@ob...> - 2006-10-16 09:09:57
|
Hum it looks like a real bug in ./CXX/Objects.hxx Line 1938 should be ~mapref() and not ~mapref<T>() It used to compile bug it is not true any more using gcc version 4.1.2 20061007 (prerelease) (Debian 4.1.1-16) According to C++ iso standard, ~mapref<T>() seems to be wrong code so could you please apply this path? Xavier. >>>>>> "Xavier" == Xavier Gnata <gn...@ob...> writes: >>>>>> > > Xavier> Hi, Matplotlib svn tree does not compile anymore since a > Xavier> few days : > > Have you upgraded your compiler recently? It compiles fine for me > with an older version > > >> gcc --version >> > gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2.1) > > Xavier> C++ ./CXX/Objects.hxx:1938: error: parse error in template > Xavier> argument list ./CXX/Extensions.hxx: In constructor > Xavier> øPy::PythonExtension<T>::PythonExtension() [with T = > Xavier> Py::ExtensionModuleBasePtr]ù: CXX/cxx_extensions.cxx:90: > Xavier> instantiated from here ./CXX/Extensions.hxx:477: warning: > > Nothing in this part of the code has changed for a while -- when was > the last time you successfully compiled. Can you try compiling an > older revision to figure out if something in the code base has changed > or something in your compiler/platform > > >> svn log CXX/Objects.hxx >> > ------------------------------------------------------------------------ > r2778 | cmoad | 2006-09-20 20:03:00 -0500 (Wed, 20 Sep 2006) | 2 lines > > Applied python2.5 build patch submitted on SF > > ------------------------------------------------------------------------ > r1697 | jdh2358 | 2005-08-31 14:13:44 -0500 (Wed, 31 Aug 2005) | 2 > lines > > added strip chart example > > ------------------------------------------------------------------------ > r1070 | jdh2358 | 2005-03-11 14:00:59 -0600 (Fri, 11 Mar 2005) | 2 > lines > > upgraded cxx > > > The most likely candidate that is screwing you up is the r2778 so you > might try a revision before and after that. What python are you using > -- this patch was applied to fix a python2.4 bug. > > JDH > > > -- ############################################ Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: gn...@ob... ############################################ |
|
From: Stefan v. d. W. <st...@su...> - 2006-10-16 06:14:31
|
On Sun, Oct 15, 2006 at 09:31:32PM -0200, Flavio Coelho wrote: > Hi, >=20 > I am having a strange behavior with the size of axes in imshow. the att= ached > code worked fine with an older version of Pylab, but with the latest SV= N, the > plots are appearing very narrow (vertically)in the middle of the window= instead > of resizing to take up the whole frame. > can anyone please illuminate me as to why this is happening? The size of the image being plotted is (72, 2048), so that behaviour sounds correct. The plot I see is shown here: http://mentat.za.net/results/morlet.png Cheers St=E9fan |
|
From: morovia m. <jal...@go...> - 2006-10-14 13:59:23
|
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,
my /etc/ld.so.conf contains
/usr/X11R6/lib
any suggestions welcome.
Thanks
Best regards
Morovia.
|
|
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 |