SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(3)
2
3
4
5
6
(2)
7
(3)
8
(6)
9
(5)
10
(7)
11
(3)
12
(5)
13
(6)
14
(6)
15
(8)
16
(12)
17
(12)
18
(4)
19
(8)
20
(26)
21
(21)
22
(12)
23
(4)
24
25
26
27
(1)
28
29
(6)
30
(9)
31
(12)

Showing 4 results of 4

From: ahmet n. <ahm...@ya...> - 2006年03月18日 09:31:32
Hi,
I wrote a random walk program which you will find below. When I run it from the terminal, it gives error which I am not able to figure out what could be wrong. From the bash shell, I give a command 
 >python2.4 random.py
It gives error:
-----------------------------------------------------------------------------------------
 Traceback (most recent call last):
 File "random.py", line 2, in ?
 from pylab import *
 File "/usr/lib/python2.4/site-packages/pylab.py", line 1, in ?
 from matplotlib.pylab import *
 File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 196, in ?
 import mlab #so I can override hist, psd, etc...
 File "/usr/lib/python2.4/site-packages/matplotlib/mlab.py", line 58, in ?
 import sys, random
 File "/home/ofenerci/workspace/random.py", line 11, in ?
 if (rand() > 0.5):
NameError: name 'rand' is not defined
[3] Done gedit random.py
-------------------------------------------------------------------------------------------------------------
When I write the program step by step inside the python shell or run it inside the python-idle, everything goes smoothly and it doesn't give any error. I don't know why gives error, If I run it from the terminal.
thanks,
Ahmet Nurlu
Random.py Program:
---------------------------------------------------------------------------
from pylab import *
npts=1000
nplot=10
for i in range(0,nplot):
 
 xplot=[]
 x=0.0
 for i in range(0,npts):
 if (rand() > 0.5):
 x=x+1
 else:
 x=x-1
 xplot.append(x)
 plot(xplot,'g')
 hold(True)
show()
-------------------------------------------------------------------------
		
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
From: John H. <jdh...@ac...> - 2006年03月18日 02:10:45
>>>>> "James" == James Evans <jre...@ea...> writes:
 James> The patch is as follows: -- In several places arrays are
 James> initialized with a variable for the length. As per
 James> Stroustrup arrays can only be specified with constants or
 James> using 'new' .
Hey James, I notice you have 3 patches with the title 
 Strict C/C++ Conformance
Have all of these been resolved by the patch Andrew applied? If so,
I'll close them.
Thanks,
JDH
From: John H. <jdh...@ac...> - 2006年03月18日 02:07:29
>>>>> "Jordan" == Jordan Dawe <jdawe@u.washington.edu> writes:
 Jordan> I've uploaded a patch to sourceforge that lets you control
 Jordan> the grid line attributes from the grid() function. So,
 Jordan> for instance, if you wanted red grid lines on one plot,
 Jordan> you can go grid(color='r')
Thanks Jordan, nicely done. I've committed this to svn revision 2159.
For all of the matplotlib developers (or potential developers!) out
there, we've fallen a bit behind on applying the sf patches and
resolving the reported bugs. Everyone try to pick a few off as you
have time.
Thanks,
JDH
From: John H. <jdh...@ac...> - 2006年03月18日 01:49:17
>>>>> "Jos=E9" =3D=3D Jos=E9 Matos <jao...@gm...> writes:
 Jose> IMO rpm is right and the test is wrong. It does not make
 Jose> any sense to require a running X just to check that pygtk is
 Jose> installed.
In principle, I certainly agree with you. In practice, I think this
is harder than it sounds, because several of us have tried to make a
build/configure system that 1) works and 2) doesn't require X, and
obviously we have failed. Whle it certainly must be possible, we
clearly haven't found the right apporaches for GTK* and Tk*.
 >> The mysterious part is why bdist_rpm /used/ to work for mpl as
 >> of 0.83.2. It could be either that a change in mpl's build
 >> made it more sensitive to X11 issues than before, or that
 >> Fedora3 updated its rpm build scripts between those days and
 >> today, and that now they do this 'unset DISPLAY'. But given
 >> that on Ubuntu and Mandriva it's working OK, I wouldn't worry
 >> too much about it. Having that feedback was a good outcome of
 >> this thread, even if I can't upgrade in our lab :)
 Jose> The usual trick in rpms it to require a nest X to test for
 Jose> pygtk.
I'm not sure I understand this. We have the following
if BUILD_GTK:
 try:
 import gtk
 except ImportError:
 print 'GTK requires pygtk'
 BUILD_GTK=3D0
 except RuntimeError:
 print 'pygtk present but import failed'
The ImportError is designed to catch the case where pygtk is not
present and the RuntimeError is designed to warn but not fail if X is
not present. I'll do some testing tonight to see if I can isolate
where this is failing. =20
JDH

Showing 4 results of 4

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 によって変換されたページ (->オリジナル) /