SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(11)
2
(1)
3
(5)
4
(25)
5
(14)
6
(36)
7
(13)
8
(15)
9
10
(5)
11
(5)
12
(11)
13
(15)
14
(9)
15
(16)
16
(3)
17
(13)
18
(7)
19
(9)
20
(12)
21
(2)
22
(6)
23
24
(2)
25
(1)
26
(16)
27
(7)
28
(11)
29
(8)
30
(1)

Showing results of 277

<< < 1 .. 5 6 7 8 9 .. 12 > >> (Page 7 of 12)
From: R. P. S. <R.S...@um...> - 2006年09月11日 18:39:49
St=E9fan suggested that I include an example script to show people what=20
the package could do. I thought this was a good idea, so I wrote one=20
and have uploaded a new version of the package with the example script.=20
 I've also added copyright and license information, for those that=20
care. The most recent version is 0.5 and is downloadable from the same=20
site as before:
http://www.umit.maine.edu/~r.springuel/000CCFE8-80000018/
--=20
R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: By Appointment only during the Summer
From: Esdras C. <ach...@gm...> - 2006年09月11日 15:48:16
No I dont want unconected dots, I want my poits not a line, the poits are
experimental they dont follow a line, i want see what is the too far poits
and cut it of my file. I can draw oly the points and not a poits of line but
the poits of file?
2006年9月6日, Victoria G. Laidler <la...@st...>:
>
> Esdras Caleb wrote:
>
> >i see the tutorial but only do plot dont plot the points it do a
> >interpolation in the opints and give a line or points folloing the
> line...
> >someone can say to me hoy only draw points?
>
> It sounds like you want to specify that the plot command should use a
> marker
> other than line, which is the default.
>
> For instance if you have been doing
> plot(x,y)
>
> and getting a line, then try doing this instead
>
> plot(x,y,'.')
>
> to get unconnected dots.
> You can use a variety of markers; there's a list in the pylab
> documentation somewhere.
>
> Hope this helps,
> Vicki Laidler
>
>
>
>
>
>
> -------------------------------------------------------------------------
> 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: Alan G I. <ai...@am...> - 2006年09月10日 23:42:15
On 2006年9月10日, "R. Padraic Springuel" apparently wrote:=20
> ClusterPlot.py=20
> http://www.umit.maine.edu/~r.springuel/000CCFE8-80000018/=20
License?
Cheers,
Alan Isaac
From: R. P. S. <R.S...@um...> - 2006年09月10日 21:24:33
My apologies. The link I posted was invalid. The one below is a step 
up in the directory structure which is a bit more stable level in terms 
of how the system I'm using labels its uploaded files. The package I 
mentioned is ClusterPlot.py
http://www.umit.maine.edu/~r.springuel/000CCFE8-80000018/
-- 
R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: By Appointment only during the Summer
From: R. P. S. <R.S...@um...> - 2006年09月10日 15:32:30
Well, since it seems that there doesn't exist a python routine for 
making dendrograms, I made one myself. At the moment the package isn't 
as complete as I want it to be, but I'd like some feedback on it from 
interested parties.
The first beta release can be downloaded from the link below:
http://www.umit.maine.edu/~r.springuel/000CCFE8-80000018/S2AF592D6.-1/ClusterPlot.py
-- 
R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: By Appointment only during the Summer
From: Helge A. <av...@bc...> - 2006年09月10日 07:38:05
Attachments: edit.py
Hi,
I have done this with pygist (see attached snippet), but not with
matplotlib (yet) as it is a bit to slow for big datasets.
I believe it should be relatively easy to implement a similar mouse
handling loop for
matplotlib, someone else can probably fill in with a better solution.
if you use pcolormesh instead of pcolor in a similar matplotlib
implementation the performance will be reasonable.
Helge
On 9/8/06, Rob Hetland <he...@ta...> wrote:
>
> I am interested in making an 'interactive mask.' That is, I am
> creating a model of estuarine flow, where the grid is rectangular,
> and part of the domain will be land, not included in the simulation
> through a mask. I would like to be able to modify this mask using a
> tool that will allow me to click cells on and off.
>
> I can think of a few ways to do this, but I thought I would ask y'all
> first. A rough outline of the code would be:
>
> 1. pcolor the grid
> 2. Catch clicks in the figure, and determine which cell is clicked.
> 3. Toggle the masking of that cell, and re-draw the figure
>
> Has anybody done this?
>
> Any ideas about any of the parts? I think I can handle part 1. I'm
> worried part 3 might be inefficient.
>
> -Rob
>
> ----
> Rob Hetland, Associate Professor
> Dept. of Oceanography, Texas A&M University
> http://pong.tamu.edu/~rob
> phone: 979-458-0096, fax: 979-845-6331
>
>
>
> -------------------------------------------------------------------------
> 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: David S. <dav...@gm...> - 2006年09月10日 04:18:55
Folks,
I am trying to install matplotlib 0.87.5 by compiling it. I'm using
python 2.5 RC1 (yes - bleeding edge) on opensuse 10.1 on an amd64
chip. python 2.5rc1 and numpy 1.0b2. I'll try to install 1.0b5 but I
don't think that's the cause. I've made sure all the suse packages
needed for matplotlib are installed. However, I get gcc compiler
errors (using gcc 4.1) included below. Any thoughts?
GTK requires pygtk
TKAgg requires TkInter
GTKAgg requires pygtk
running install
running build
running build_py
running build_ext
building 'matplotlib._agg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC
compile options: '-Iagg23/include -Isrc -Iswig
-I/usr/local/include/python2.5 -c'
gcc: src/agg.cxx
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/agg.cxx: In function 'int SWIG_Python_ConvertPtr(PyObject*,
void**, swig_type_info*, int)':
src/agg.cxx:1231: error: invalid conversion from 'const char*' to 'char*'
src/agg.cxx: In function 'void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**)':
src/agg.cxx:27624: error: invalid conversion from 'const char*' to 'char*'
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/agg.cxx: In function 'int SWIG_Python_ConvertPtr(PyObject*,
void**, swig_type_info*, int)':
src/agg.cxx:1231: error: invalid conversion from 'const char*' to 'char*'
src/agg.cxx: In function 'void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**)':
src/agg.cxx:27624: error: invalid conversion from 'const char*' to 'char*'
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3
-Wall -Wstrict-prototypes -fPIC -Iagg23/include -Isrc -Iswig
-I/usr/local/include/python2.5 -c src/agg.cxx -o
build/temp.linux-x86_64-2.5/src/agg.o" failed with exit status 1
From: Eric F. <ef...@ha...> - 2006年09月08日 22:57:53
Louis Pecora wrote:
> I have looked in the User's Guide for matplotlib, but couldn't find 
> anything on setting the aspect ratio. Can anyone point me to some info 
> online? I will continue to look. Thanks.
> 
Each axes object has the following method (with only the docstring shown 
here):
 def set_aspect(self, aspect, adjustable=None, anchor=None):
 """
 aspect:
 'auto' - automatic; fill position rectangle with data
 'normal' - same as 'auto'; deprecated
 'equal' - same scaling from data to plot units for x and y
 num - a circle will be stretched such that the height
 is num times the width. aspect=1 is the same as
 aspect='equal'.
 adjustable:
 'box' - change physical size of axes
 'datalim' - change xlim or ylim
 anchor:
 'C' - centered
 'SW' - lower left corner
 'S' - middle of bottom edge
 'SE' - lower right corner
 etc.
 ACCEPTS: ['auto' | 'equal' | aspect_ratio]
 """
Is this what you are looking for?
Eric
From: R. P. S. <R.S...@um...> - 2006年09月08日 21:16:45
Is it possible to combine the dashed, dot-dashed, and dotted line styles 
with a linestyle='steps' keyword argument?
-- 
R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: By Appointment only during the Summer
From: Roberto A. <rob...@gm...> - 2006年09月08日 19:42:57
I found how to explicitly set the x-axis using the following command:
figure.gca().set_xlim([min, max])
-Roberto.
On 9/6/06, Roberto Aguilar <rob...@gm...> wrote:
> Hello,
>
> I'm creating a program that plots data in real-time. I want the
> x-axis to be the time in HH:MM:SS. I'm still playing with the date
> formatters, but have run into a problem where it seems the axis puts
> in more points on the axis to make the plot fit nicely. For instance,
> I want to have 120 data points (seconds) on the graph. Initially, the
> x-axis starts at, say 0 and goes to 120 (I'd expect this to be 119).
> The following second the x-axis should go from 1 to 120, then 2 to
> 121, etc. But instead, the x-axis goes from 0 to 140. Once 141
> seconds have passed by, the axis shifts and goes from 20 to 160.
>
> Is there any way to make the axis behave so that it keeps just 120
> values on the axis and increment the values as described above?
>
> Thanks!
> -Roberto.
>
From: Louis P. <pe...@an...> - 2006年09月08日 19:23:26
I have looked in the User's Guide for matplotlib, but couldn't find 
anything on setting the aspect ratio. Can anyone point me to some info 
online? I will continue to look. Thanks.
-- 
Cheers,
Lou Pecora
Code 6362
Naval Research Lab
Washington, DC 20375
USA
Ph: +202-767-6002
email: pe...@an...
From: Rob H. <he...@ta...> - 2006年09月08日 19:14:30
I am interested in making an 'interactive mask.' That is, I am 
creating a model of estuarine flow, where the grid is rectangular, 
and part of the domain will be land, not included in the simulation 
through a mask. I would like to be able to modify this mask using a 
tool that will allow me to click cells on and off.
I can think of a few ways to do this, but I thought I would ask y'all 
first. A rough outline of the code would be:
1. pcolor the grid
2. Catch clicks in the figure, and determine which cell is clicked.
3. Toggle the masking of that cell, and re-draw the figure
Has anybody done this?
Any ideas about any of the parts? I think I can handle part 1. I'm 
worried part 3 might be inefficient.
-Rob
----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331
From: Eric F. <ef...@ha...> - 2006年09月08日 17:24:24
I suggest using masked arrays to ensure you are only trying to plot real 
numbers:
def f(x):
 y = log(x)
 ygood = (y < 1e38) & (y > -1e-38)
 yy = nx.ma.masked_where(ygood == 0, y)
 return yy
Note the parentheses and peculiar use of bitwise-and in the definition 
of ygood. This is a hack to get around the fact that the logical-and 
operator in python cannot be overloaded at present, and so is not 
available in numpy.
Eric
Davidlohr Bueso A. wrote:
> Hi all,
> 
> I'm having trouble plotting functions were the domain aren't the real
> numbers (R). Functions like x**-n, log(x), etc. Does anyone know if
> there's a simple way of solving this problem. Here's a little script and
> it's error:
> 
> from pylab import *
> 
> def f(x):
> return log(x)
> 
> x = arange(-3, 4)
> plot(x, f(x))
> show()
From: Christopher B. <Chr...@no...> - 2006年09月08日 16:10:29
Christian Meesters wrote:
> I you don't need to use svn, you might give this build a try:
> http://pythonmac.org/packages/py24-fat/index.html
Or the latest build, which is now at:
http://euclid.uits.iupui.edu/mplfiles/
You'll need:
matplotlib-0.87.5-py2.4-macosx-10.4-fat.egg
and:
numpy-1.0b5-py2.4-macosx-10.4-fat.egg
(if you want to use numpy)
Charlie: I think we should give those to Bob I to put on the pythonmac site.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Christopher F. <lis...@ma...> - 2006年09月08日 15:08:04
I am building matplotlib on an Intel Mac, and trying to use py2app to 
generate mpkg files. Everything seems to go well, except that when I 
go to install the package, it says that there is nothing to install. 
The package seems to be there, but is grayed out with "Skip" in the 
action column:
http://trichech.us/images/mpkg.png
Anyone else encounter this problem?
Thanks,
--
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac.com
+ Contact me on AOL IM using email address
From: Darren D. <dd...@co...> - 2006年09月08日 14:02:42
This question was asked on this list yesterday. You need to install 
numpy-1.0b5.
Darren
On Friday 08 September 2006 09:52, Jean_Francois Moulin wrote:
> I tried installing the 0.87.5 version of matplotlib and this is what I get
> when running a routine that worked under 0.87.3. Any clue?
> TIA
> JF
>
> >pythonw -u "image_rx2_3.py"
>
> Traceback (most recent call last):
> File "image_rx2_3.py", line 1, in ?
> from pylab import *
> File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
> from matplotlib.pylab import *
> File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196, in ?
> import cm
> File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ?
> import colors
> File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33, in ?
> from numerix import array, arange, take, put, Float, Int, where, \
> File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py", line
> 145, in ? __import__('fft', g, l)
> File "C:\Python24\Lib\site-packages\matplotlib\numerix\fft\__init__.py",
> line 11, in ? from numpy.dft.old import *
> ImportError: No module named old
>
> >Exit code: 1
>
> -------------------------------------------------------------------------
> 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
-- 
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853
dd...@co...
office: (607) 255-3819
fax: (607) 255-9001
From: Jean_Francois M. <Jea...@ph...> - 2006年09月08日 13:52:23
I tried installing the 0.87.5 version of matplotlib and this is what I get when running a routine that worked under 0.87.3.
Any clue?
TIA
JF
>pythonw -u "image_rx2_3.py"
Traceback (most recent call last):
 File "image_rx2_3.py", line 1, in ?
 from pylab import *
 File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
 from matplotlib.pylab import *
 File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196, in ?
 import cm
 File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ?
 import colors
 File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33, in ?
 from numerix import array, arange, take, put, Float, Int, where, \
 File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py", line 145, in ?
 __import__('fft', g, l)
 File "C:\Python24\Lib\site-packages\matplotlib\numerix\fft\__init__.py", line 11, in ?
 from numpy.dft.old import * 
ImportError: No module named old
>Exit code: 1
From: Jean_Francois M. <Jea...@ph...> - 2006年09月08日 13:47:34
Hi all!
I have a small problem with the legend() stuff...
when plotting several lines 
like in:
....
name=0
for curve in data:
 plot(curve[0],curve[1],label=str(name))
 name+=1
legend()
show()
the first two curves appear with a label but without the line represented in the legend box.
Moreover the label used for the first two lines is always line0 and line1, whatever the label I actually create. I was able to fix this by creating a label list and unvoking legend(label_list) but this did not work for the lines...
any clue??
PS I am running 0.87.3 (problems installing 0.87.5 see next post)
Thanks in advance JF
From: Christian M. <mee...@un...> - 2006年09月08日 13:37:43
Hi,
I you don't need to use svn, you might give this build a try:
http://pythonmac.org/packages/py24-fat/index.html
Christian
From: Darren D. <dd...@co...> - 2006年09月08日 13:31:31
I just built svn 2761 on linux, and didnt find any problems.
Darren
On Friday 08 September 2006 08:39, lis...@ma... wrote:
> I have built matplotlib from svn this morning (trunk), which was
>
> successful, but when I go to import anything, it fails:
> >>> import pylab
>
> 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 *
> ImportError: No module named matplotlib.pylab
>
> >>> import matplotlib
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named matplotlib
>
> However, when I look in my site-packages directory, matplotlib is
> clearly there:
>
> Osoyoos:~ chris$ ls /Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages
> README modulegraph-0.7-py2.4.egg
> activestate.py numpy
> altgraph-0.6.7-py2.4.egg numpy-1.0rc1.dev3136-
> py2.4.egg-info
> bdist_mpkg-0.4.2-py2.4.egg py2app-0.3.4-py2.4.egg
> easy-install.pth pylab.py
> macholib-1.1-py2.4.egg pylab.pyc
> matplotlib pylab.pyo
> matplotlib-0.87.5_r2761-py2.4-nspkg.pth setuptools-0.6c2-py2.4.egg
> matplotlib-0.87.5_r2761-py2.4.egg-info setuptools.pth
>
> I'm running on OS X using Python 2.4.3.
>
> Any ideas? Thanks.
>
> --
> Christopher Fonnesbeck
> + Atlanta, GA
> + fonnesbeck at mac.com
> + Contact me on AOL IM using email address
>
>
>
> -------------------------------------------------------------------------
> 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
-- 
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853
dd...@co...
office: (607) 255-3819
fax: (607) 255-9001
From: <lis...@ma...> - 2006年09月08日 12:38:20
I have built matplotlib from svn this morning (trunk), which was 
successful, but when I go to import anything, it fails:
 >>> import pylab
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 *
ImportError: No module named matplotlib.pylab
 >>> import matplotlib
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
ImportError: No module named matplotlib
However, when I look in my site-packages directory, matplotlib is 
clearly there:
Osoyoos:~ chris$ ls /Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/site-packages
README modulegraph-0.7-py2.4.egg
activestate.py numpy
altgraph-0.6.7-py2.4.egg numpy-1.0rc1.dev3136- 
py2.4.egg-info
bdist_mpkg-0.4.2-py2.4.egg py2app-0.3.4-py2.4.egg
easy-install.pth pylab.py
macholib-1.1-py2.4.egg pylab.pyc
matplotlib pylab.pyo
matplotlib-0.87.5_r2761-py2.4-nspkg.pth setuptools-0.6c2-py2.4.egg
matplotlib-0.87.5_r2761-py2.4.egg-info setuptools.pth
I'm running on OS X using Python 2.4.3.
Any ideas? Thanks.
--
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac.com
+ Contact me on AOL IM using email address
From: Kevin H. <kho...@ro...> - 2006年09月08日 01:11:45
On 7-Sep-06, at 12:05 PM, Christopher Barker wrote:
> Kevin Horton wrote:
>
>> I also want to note that the GTK
>> backend is useful to some people, and hope that it will continue to
>> be supported (I seem to recall one mention that it was little used).
>
> This is a good point. In general, the Agg back-ends produce nicer an
> more consistent results, and, on local machines, performance is just
> fine, but in a remote X-session, there are real advantages to using X
> for the rendering. The same probably applies to the TK and Wx back- 
> ends
> also.
Thanks for the explanation on the difference in these backends.
I did notice many artifacts in the plots when using the GTK backend, 
especially when only setting xmin and xmax to only display a small 
portion of the data . Is this a known problem? Is there interest in 
correcting it, and if so, is there any information I can provide to 
assist, or any testing I can do?
Kevin Horton
Ottawa, Canada
From: Davidlohr B. A. <db...@li...> - 2006年09月07日 23:40:28
Hi all,
I'm having trouble plotting functions were the domain aren't the real
numbers (R). Functions like x**-n, log(x), etc. Does anyone know if
there's a simple way of solving this problem. Here's a little script and
it's error:
from pylab import *
def f(x):
 return log(x)
x = arange(-3, 4)
plot(x, f(x))
show()
Output:
Traceback (most recent call last):
 File "test", line 7, in ?
 plot(x, f(x))
 File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line
2019, in plot
 ret = gca().plot(*args, **kwargs)
 File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 2111,
in plot
 self.autoscale_view(scalex=scalex, scaley=scaley)
 File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 975,
in autoscale_view
 if scaley: self.set_ylim(locator.autoscale())
 File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line
839, in autoscale
 return take(self.bin_boundaries(dmin, dmax), [0,-1])
 File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line
809, in bin_boundaries
 scale, offset = scale_range(vmin, vmax, nbins)
 File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line
783, in scale_range
 ex = divmod(math.log10(-meanv), 1)[0]
OverflowError: math range error
Thanks!
Please excuse my last email for I had run into this error alot before the
new releases of numpy and MPL so I did not think to check the mailing list
from yesterday to see if anyone else had found the error.
As explained the latest version of scipy, 0.51 fixes this error
From: Kenny O. <ya...@em...> - 2006年09月07日 17:30:51
Hey guys.
I have reinstalled all of my python addons and this is what i have
python 2.4
numpy 1.0b5
scipy.050
matplotlib.087.5
wxPython2.6-win32-unicode-2.6.3.3-py24.exe
wxmpl latest from subversion
C:\lameness>c:\Python24\python.exe templatewindow.py
Overwriting info=<function info at 0x02550370> from scipy.misc.helpmod
(was <fun
ction info at 0x019748B0> from numpy.lib.utils)
Overwriting who=<function who at 0x01E433F0> from scipy.misc.common (was
<functi
on who at 0x019747F0> from numpy.lib.utils)
Overwriting source=<function source at 0x02552470> from scipy.misc.helpmod
(was
<function source at 0x019748F0> from numpy.lib.utils)
RuntimeError: module compiled against version 1000000 of C-API but this
version
of numpy is 1000002
Fatal Python error: numpy.core.multiarray failed to import... exiting.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
C:\lameness>
And I recieve this error. I was getting this with matplotlib prior to
87.5 and posted the error on the numpy mailing list and basicall they told
me to get the latest svn of matplotlib and thats why the error occured. 
They also said that it was a matplotlib problem not a numpy problem. 
Anyone know how to fix this?
-Kenny
2 messages has been excluded from this view by a project administrator.

Showing results of 277

<< < 1 .. 5 6 7 8 9 .. 12 > >> (Page 7 of 12)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /