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) |
|
From: fred <fr...@gm...> - 2006-09-22 09:56:33
|
Hi the list,
I have looked for in mailing-list archive, but did not find anything
relevant.
I use matplotlib 0.87-5 and I want to try some examples concerning fonts
in .examples/.
When I run fonts_demo.py, I get the following messages :
:~...matplotlib-0.87.5/examples/{58}/> python fonts_demo.py
/usr/local/lib/python2.4/site-packages/matplotlib/font_manager.py:989:
UserWarning: Could not match cursive, normal, normal. Returning
/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data/Vera.ttf
warnings.warn('Could not match %s, %s, %s. Returning %s' % (name,
style, variant, self.defaultFont))
/usr/local/lib/python2.4/site-packages/matplotlib/font_manager.py:989:
UserWarning: Could not match fantasy, normal, normal. Returning
/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data/Vera.ttf
warnings.warn('Could not match %s, %s, %s. Returning %s' % (name,
style, variant, self.defaultFont))
/usr/local/lib/python2.4/site-packages/matplotlib/font_manager.py:989:
UserWarning: Could not match sans-serif, italic, normal. Returning
/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data/Vera.ttf
warnings.warn('Could not match %s, %s, %s. Returning %s' % (name,
style, variant, self.defaultFont))
What am I doing wrong ?
In fact, all fonts displayed in the window are the same.
Any suggestion ?
Cheers,
PS : python 2.4, freetype-2.1.7-6, libpng-1.2.8 on a debian sarge linux b=
ox.
--=20
=AB Python, c'est un peu comme la ba=EFonnette en 14, faut toujours sorti=
r avec,
et pas h=E9siter d'en mettre un coup en cas de besoin. =BB
J.-Ph. D.
|
|
From: Peter B. <Pet...@ug...> - 2006-09-22 07:36:59
|
Hello,
I can't seem to get matplotlib-0.87.5 to work with numpy1.0rc:
Python 2.4.3 (#1, Sep 21 2006, 13:06:42)
[GCC 4.1.1 (Gentoo 4.1.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/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 cm
File "/usr/lib/python2.4/site-packages/matplotlib/cm.py", line 5, in ?
import colors
File "/usr/lib/python2.4/site-packages/matplotlib/colors.py", line 33, in ?
from numerix import array, arange, take, put, Float, Int, where, \
File "/usr/lib/python2.4/site-packages/matplotlib/numerix/__init__.py", line
74, in ?
Matrix = matrix
NameError: name 'matrix' is not defined
This is on an AMD64 platform. I tried removing the build directories of both
packages, and reinstalling, but that didn't work.
Am I missing something?
Thanks!
Peter
|
|
From: George N. <gn...@go...> - 2006-09-21 08:21:31
|
On 20/09/06, John Hunter <jdh...@ac...> wrote:
> >>>>> "George" == George Nurser <gn...@go...> writes:
>
> George> SVN revision 2774, linux 64-bit, TkAgg, NumPy. If I
> George> create a figure on the screen (TkAgg back end), when I try
> George> to save it as .ps, the resulting file displays and prints
> George> as blank. However I can save it as .eps (or png)
> George> perfectly well.
>
> tkagg passes its printing off to agg, which passes both *.ps and *.eps
> to backend_ps with no further processing. So if there is a problem,
> it should show up on a pure PS backend, eg
>
> import matplotlib
> matplotlib.use('PS')
> from pylab import figure, show
> fig = figure()
> ax = fig.add_subplot(111)
> ax.plot([1,2,3])
> fig.savefig('test.ps')
> fig.savefig('test.eps')
>
> Is anyone seeing problems with this?
John,
I tried this and, again, the ps fails but eps is OK.
>
> There is, however, a known bug when using tkagg from pylab, after you
> click the save button pylab loses the current figure. This appears to
> be a tkinter bug and I reported it on python-list and go no response.
> If this is the cause of your problem, it is not about PS vs EPS vs
> PNG, but about which filetype you try and save first. The first one
> would work, and subsequent ones would fail.
This certainly wasn't the problem. Originally I tried saving png first
(OK), ps (not OK),
eps (third time lucky, OK.)
Thanks for responding so quickly. George.
|
|
From: Charlie M. <cw...@gm...> - 2006-09-21 01:04:37
|
I applied the parts of the patch that don't affect the swig files.
Seems to be working well.
Thanks,
Charlie
On 9/20/06, Andrew Jaffe <a.h...@gm...> wrote:
> Hi all,
>
> As discussed by David Cooke, above, I think there are still some other
> issues, at least under OSX: several files need to be patch to convert
> int to the new Py_ssize_t, at least in cxx_extensions.cxx and _image.cpp
>
> Will these be changed?
>
> Andrew
>
>
>
> Achim Gaedke wrote:
> > Hi there!
> >
> > I built numpy-1.0b5 and pygtk with python2.5 on Sunday. It worked, but I
> > use numarray as standard numerix extension.
> > There was a bugfix for numpy-1.0b5 that is already contained in their
> > repository version.
> >
> > Yours, Achim
> >
> > Charlie Moad wrote:
> >> It builds now. We still have to wait on a useable numpy for python2.5
> >> and pygtk for windows/py2.5. All the other components are there or we
> >> can build.
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: John H. <jdh...@ac...> - 2006-09-20 22:47:47
|
>>>>> "George" == George Nurser <gn...@go...> writes:
George> SVN revision 2774, linux 64-bit, TkAgg, NumPy. If I
George> create a figure on the screen (TkAgg back end), when I try
George> to save it as .ps, the resulting file displays and prints
George> as blank. However I can save it as .eps (or png)
George> perfectly well.
tkagg passes its printing off to agg, which passes both *.ps and *.eps
to backend_ps with no further processing. So if there is a problem,
it should show up on a pure PS backend, eg
import matplotlib
matplotlib.use('PS')
from pylab import figure, show
fig = figure()
ax = fig.add_subplot(111)
ax.plot([1,2,3])
fig.savefig('test.ps')
fig.savefig('test.eps')
Is anyone seeing problems with this?
There is, however, a known bug when using tkagg from pylab, after you
click the save button pylab loses the current figure. This appears to
be a tkinter bug and I reported it on python-list and go no response.
If this is the cause of your problem, it is not about PS vs EPS vs
PNG, but about which filetype you try and save first. The first one
would work, and subsequent ones would fail.
JDH
|
|
From: George N. <gn...@go...> - 2006-09-20 21:30:24
|
SVN revision 2774, linux 64-bit, TkAgg, NumPy. If I create a figure on the screen (TkAgg back end), when I try to save it as .ps, the resulting file displays and prints as blank. However I can save it as .eps (or png) perfectly well. -George Nurser. |
|
From: Jonathan P. <pe...@gm...> - 2006-09-20 19:57:25
|
After attempting to install matplotlib-0.87.5 from source on an intel mac (OS X 10.4.7), I get an error when importing the pylab module. This appears to be the same error reported in: http://sourceforge.net/mailarchive/forum.php?thread_id=30574221&forum_id=33405 My attempt was with freetype-2.2.1 and Python 2.4.3. The error message is: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/font_manager.py 37 import matplotlib 38 from matplotlib import afm ---> 39 from matplotlib import ft2font 40 from matplotlib import rcParams, get_data_path, get_home, get_configdir 41 ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ft2font.so: Symbol not found: _FMDisposeFontFamilyIterator Referenced from: /usr/local/lib/libfreetype.6.dylib Expected in: flat namespace I've done a bit of sleuthing but haven't found anything very helpful. If anyone has any insight as to what is causing the error, or even better how to fix it, I would appreciate it. Let me know if there is any other helpful information I can provide. Many thanks, -Jonathan |
|
From: Andrew J. <a.h...@gm...> - 2006-09-20 19:11:34
|
Hi all, As discussed by David Cooke, above, I think there are still some other issues, at least under OSX: several files need to be patch to convert int to the new Py_ssize_t, at least in cxx_extensions.cxx and _image.cpp Will these be changed? Andrew Achim Gaedke wrote: > Hi there! > > I built numpy-1.0b5 and pygtk with python2.5 on Sunday. It worked, but I > use numarray as standard numerix extension. > There was a bugfix for numpy-1.0b5 that is already contained in their > repository version. > > Yours, Achim > > Charlie Moad wrote: >> It builds now. We still have to wait on a useable numpy for python2.5 >> and pygtk for windows/py2.5. All the other components are there or we >> can build. > |
|
From: Achim G. <Ach...@ph...> - 2006-09-20 17:17:34
|
Hi there! I built numpy-1.0b5 and pygtk with python2.5 on Sunday. It worked, but I use numarray as standard numerix extension. There was a bugfix for numpy-1.0b5 that is already contained in their repository version. Yours, Achim Charlie Moad wrote: > It builds now. We still have to wait on a useable numpy for python2.5 > and pygtk for windows/py2.5. All the other components are there or we > can build. |
|
From: Charlie M. <cw...@gm...> - 2006-09-20 16:44:19
|
It builds now. We still have to wait on a useable numpy for python2.5 and pygtk for windows/py2.5. All the other components are there or we can build. On 9/20/06, John Hunter <jdh...@ac...> wrote: > >>>>> "Charlie" == Charlie Moad <cw...@gm...> writes: > > Charlie> This came up on the dev list yesterday and we tried with > Charlie> swig-1.3.29, which is the latest listed release on SF. > Charlie> The link you provided shows this was indeed fixed after > Charlie> the 1.3.29 release. Jon, can we give bleeding edge swig > Charlie> a try? > > OK, bleeding edge SWIG versions of the agg wrappers are in svn. > > Good luck! > > JDH > |
|
From: Fraser, A. <a.f...@im...> - 2006-09-20 16:01:47
|
Hi
I am installing matplotlib-0.87.5 on a red hat linux system with Python =
2.4. I have all the listed packages installed on my linux. I have =
reinstalled it several times but it is still failing with TkAgg. I have =
removed and reinstalled all the components several times, but it still =
fails.
During the build the only messages that seemed unusual relate to=20
/usr/include/features.h:150:1: warning: this is the location of the =
previous definition
When I install matplotlib and test it with=20
python subplot_demo.py -dagg it works fine
python subplot_demo.py -dTkAgg it fails
Unfortunatly I need the TkAgg backend working.
msg.
File "subplot_demo.py", line 2, in ?
from pylab import *
File "/home/arfras/local/cdat/lib/python2.4/site-packages/pylab.py", =
line 1, in ?
from matplotlib.pylab import *
File =
"/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/pylab.py"=
, line 219, in ?
new_figure_manager, draw_if_interactive, show =3D pylab_setup()
File =
"/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/=
__init__.py", line 23, in pylab_setup
globals(),locals(),[backend_name])
File =
"/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/=
backend_tkagg.py", line 8, in ?
import tkagg # Paint image to Tk photo blitter =
extension
File =
"/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/=
tkagg.py", line 1, in ?
import _tkagg
ImportError: =
/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/_=
tkagg.so: undefined symbol: XSetInputFocus
Any ideas?
Andrea
|
|
From: John H. <jdh...@ac...> - 2006-09-20 15:42:09
|
>>>>> "Charlie" == Charlie Moad <cw...@gm...> writes:
Charlie> This came up on the dev list yesterday and we tried with
Charlie> swig-1.3.29, which is the latest listed release on SF.
Charlie> The link you provided shows this was indeed fixed after
Charlie> the 1.3.29 release. Jon, can we give bleeding edge swig
Charlie> a try?
OK, bleeding edge SWIG versions of the agg wrappers are in svn.
Good luck!
JDH
|
|
From: Lionel R. <lro...@li...> - 2006-09-20 14:47:09
|
Hi all,
I use a array with dtype=object for mixing datetime and float values, like:
##########################################
lionel[ETD-2006-01__PM2.5_DALTON]68>datas[0:5,]
Sortie[68]:
array(data =
[[2006-01-05 00:00:00 33.0 1e-20]
[2006-01-06 00:00:00 41.0 30.0]
[2006-01-07 00:00:00 20.0 16.0]
[2006-01-08 00:00:00 16.0 13.0]
[2006-01-09 00:00:00 18.0 15.0]],
mask =
[[False False True]
[False False False]
[False False False]
[False False False]
[False False False]],
fill_value=1e-20)
##########################################
but I get a error when I want to plot directly using
plot_date(date2num(datas[:,0]),datas[:,1]):
##########################################
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most recent
call last)
/home/lionel/Etudes_Techniques/ETD-2006-01__PM2.5_DALTON/<ipython console>
/usr/lib/python2.4/site-packages/matplotlib/pylab.py in plot_date(*args,
**kwargs)
2038 hold(h)
2039 try:
-> 2040 ret = gca().plot_date(*args, **kwargs)
2041 draw_if_interactive()
2042 except:
/usr/lib/python2.4/site-packages/matplotlib/axes.py in plot_date(self, x, y,
fmt, tz, xdate, ydate, **kwargs)
2159 if not self._hold: self.cla()
2160
-> 2161 ret = self.plot(x, y, fmt, **kwargs)
2162
2163 if xdate:
/usr/lib/python2.4/site-packages/matplotlib/axes.py in plot(self, *args,
**kwargs)
2121 if not self._hold: self.cla()
2122 lines = []
-> 2123 for line in self._get_lines(*args, **d):
2124 self.add_line(line)
2125 lines.append(line)
/usr/lib/python2.4/site-packages/matplotlib/axes.py in _grab_next_args(self,
*args, **kwargs)
308 if not is_string_like(remaining[2]):
309 raise ValueError, 'third arg must be a format
string'
--> 310 yield self._plot_3_args(remaining, **kwargs)
311 remaining=[]
312 continue
/usr/lib/python2.4/site-packages/matplotlib/axes.py in _plot_3_args(self,
tup3, **kwargs)
279 linestyle=linestyle, marker=marker,
280 markerfacecolor=color,
--> 281 markeredgecolor=mec,
282 )
283 self.set_lineprops(ret, **kwargs)
/usr/lib/python2.4/site-packages/matplotlib/lines.py in __init__(self, xdata,
ydata, linewidth, linestyle, color, marker, markersize, markeredgewidth,
markeredgecolor, markerfacecolor, antialiased, dash_capstyle, solid_capstyle,
dash_joinstyle, solid_joinstyle, **kwargs)
204 self.verticalOffset = None
205
--> 206 self.set_data(xdata, ydata)
207
208 if not self._lineStyles.has_key(linestyle):
/usr/lib/python2.4/site-packages/matplotlib/lines.py in set_data(self, *args)
280
281 self._x = asarray(x, Float)
--> 282 self._y = asarray(y, Float)
283
284 self._logcache = None
/usr/lib/python2.4/site-packages/numpy/oldnumeric/functions.py in asarray(a,
typecode, dtype)
82 def asarray(a, typecode=None, dtype=None):
83 dtype = convtypecode2(typecode, dtype)
---> 84 return mu.array(a, dtype, copy=0)
85
86 def nonzero(a):
TypeError: array cannot be safely cast to required type
##########################################
but the line:
plot_date(date2num(datas[:,0]), ma.masked_values(datas[:,1].tolist() ,1.e-20))
works perfectly. Do I do something wrong?
thanks
--
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
|
|
From: Charlie M. <cw...@gm...> - 2006-09-20 12:17:29
|
This came up on the dev list yesterday and we tried with swig-1.3.29,
which is the latest listed release on SF. The link you provided shows
this was indeed fixed after the 1.3.29 release. Jon, can we give
bleeding edge swig a try?
Thanks,
Charlie
On 9/20/06, Achim Gaedke <Ach...@ph...> wrote:
> Hello Charlie!
>
> Hmmm... Basically you are right. But maybe you are more familiar with
> SWIG issues than I am.
>
> Ok, I will do the job and go to swig and have a look:
>
> http://swig.cvs.sourceforge.net/swig/SWIG/Lib/python/pyrun.swg?r1=1.143&r2=1.144
>
> You will find this error corrected five months ago.
>
> You are using version: 1.3.27 (as stated in the file's header), the last
> official release is 1.3.12 (June 2006) and the latest cvs version 1.3.30
> (in progress). I do not understand why this version is not in use...
>
> Maybe you should try the latest SWIG version.
>
> Yours, Achim
>
> Charlie Moad wrote:
> > Thanks for the patch. Ideally we need to find a way to fix this in
> > swig though. Otherwise we would have to reapply the patch every time
> > we regenerate the wrappings.
>
>
|
|
From: Achim G. <Ach...@ph...> - 2006-09-20 12:11:32
|
Hello Charlie! Hmmm... Basically you are right. But maybe you are more familiar with SWIG issues than I am. Ok, I will do the job and go to swig and have a look: http://swig.cvs.sourceforge.net/swig/SWIG/Lib/python/pyrun.swg?r1=1.143&r2=1.144 You will find this error corrected five months ago. You are using version: 1.3.27 (as stated in the file's header), the last official release is 1.3.12 (June 2006) and the latest cvs version 1.3.30 (in progress). I do not understand why this version is not in use... Maybe you should try the latest SWIG version. Yours, Achim Charlie Moad wrote: > Thanks for the patch. Ideally we need to find a way to fix this in > swig though. Otherwise we would have to reapply the patch every time > we regenerate the wrappings. |
|
From: <coo...@ph...> - 2006-09-20 07:55:32
|
Achim Gaedke <Ach...@ph...> writes: > While compiling matplotlib-0.87.5 with python-2.5 on debian testing some > errors occured: > [snip errors] > > > similar errors occured in src/swig_runtime.h > > src/swig_runtime.h: In function 'int SWIG_Python_ConvertPtr(PyObject*, > void**, swig_type_info*, int)': > src/swig_runtime.h:1140: error: invalid conversion from 'const char*' to > 'char*' There are also problems with the CXX/ code using int instead of Py_ssize_t. I've submitted a patch with fixes for that, and your patch for the above problem: http://sourceforge.net/tracker/index.php?func=detail&aid=1561959&group_id=80706&atid=560722 -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke |cookedm(at)physics(dot)mcmaster(dot)ca |
|
From: John H. <jdh...@ac...> - 2006-09-19 21:54:56
|
>>>>> "Ryan" == Ryan Krauss <rya...@gm...> writes:
Ryan> I seem to be o.k. now. I tried setup.py clean. That
Ryan> doesn't remove the build dir?
No, it only rebuilds what is needed, but if the recursive dependency
analysis is broken, you can get into an inconsistent state. This
happens most commonly when headers are modified, because this doesn't
trigger rebuilds of the *.cxx files that include them. In this case,
I rebuilt the swig runtime headers with a more recent version of SWIG
to help Charlie try and get python2.5 builds going.
Note to other svn users: flush your build subdir before trying to
rebuild after a recent svn update.
See also http://matplotlib.sourceforge.net/faq.html#FAILURE
JDH
|
|
From: John H. <jdh...@ac...> - 2006-09-19 21:15:37
|
>>>>> "Ryan" == Ryan Krauss <rya...@gm...> writes:
Ryan> I just upgraded matplotlib, numpy, scipy, and ipython to
Ryan> currect svn. I am getting a segfault with pylab:
Try rm -rf the build subdir and recompile -- I just updated the SWIG
srcs which may be causing your problem.
JDH
Ryan> Python 2.4.2 (#2, Sep 30 2005, 21:19:01) [GCC 4.0.2 20050808
Ryan> (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2 Type "help",
Ryan> "copyright", "credits" or "license" for more information.
>>>> import pylab
Ryan> loaded rc file /home/ryan/.matplotlib/matplotlibrc
Ryan> matplotlib version 0.87.5 verbose.level debug-annoying
Ryan> interactive is False platform is linux2 loaded modules:
Ryan> ['pylab', '_bisect', '__future__', 'copy_reg',
Ryan> 'sre_compile', 'distutils', 'itertools', '_sre', '__main__',
Ryan> 'popen2', 'site', '__builtin__', 'datetime', 'distutils.re',
Ryan> 'matplotlib.re', 'matplotlib.tempfile', 'encodings',
Ryan> 'pytz.datetime', 'shutil', 'distutils.string', 'dateutil',
Ryan> 'matplotlib.datetime', 'posixpath', '_random', 'tempfile',
Ryan> 'errno', 'matplotlib.warnings', 'binascii',
Ryan> 'encodings.codecs', 'sre_constants', 're', 'matplotlib.md5',
Ryan> 'os.path', 'pytz.sys', '_codecs', 'distutils.sysconfig',
Ryan> 'encodings.exceptions', 'pytz.sets', 'math', 'fcntl',
Ryan> 'stat', 'zipimport', 'string', 'warnings',
Ryan> 'encodings.types', 'UserDict', 'encodings.utf_8',
Ryan> 'matplotlib', 'distutils.os', 'sys', 'pytz.tzinfo', 'pytz',
Ryan> 'matplotlib.__future__', 'codecs', 'matplotlib.sys',
Ryan> 'readline', 'matplotlib.pytz', 'types', 'md5',
Ryan> 'matplotlib.dateutil', 'matplotlib.os', 'thread', 'sre',
Ryan> 'bisect', 'matplotlib.distutils', 'signal',
Ryan> 'distutils.errors', 'random', 'linecache',
Ryan> 'matplotlib.shutil', 'posix', 'encodings.aliases', 'sets',
Ryan> 'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.sys',
Ryan> 'os', 'strop'] numerix numpy 1.0rc1.dev3190 font search path
Ryan> ['/usr/lib/python2.4/site-packages/matplotlib/mpl-data']
Ryan> trying fontname
Ryan> /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoIt.ttf
Ryan> trying fontname
Ryan> /usr/lib/python2.4/site-packages/matplotlib/mpl-data/cmsy10.ttf
Ryan> trying fontname
Ryan> /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoBd.ttf
Ryan> trying fontname
Ryan> /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraBI.ttf
Ryan> trying fontname
Ryan> /usr/lib/python2.4/site-packages/matplotlib/mpl-data/cmex10.ttf
Ryan> trying fontname
Ryan> /usr/lib/python2.4/site-packages/matplotlib/mpl-data/Vera.ttf
Ryan> $HOME=/home/ryan CONFIGDIR=/home/ryan/.matplotlib loaded
Ryan> ttfcache file /home/ryan/.matplotlib/ttffont.cache
Ryan> Segmentation fault
Ryan> Help me please. I am running Ubuntu Breezy
Ryan> Ryan
Ryan> -------------------------------------------------------------------------
Ryan> Take Surveys. Earn Cash. Influence the Future of IT Join
Ryan> SourceForge.net's Techsay panel and you'll get the chance to
Ryan> share your opinions on IT & business topics through brief
Ryan> surveys -- and earn cash
Ryan> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Ryan> _______________________________________________
Ryan> Matplotlib-users mailing list
Ryan> Mat...@li...
Ryan> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Ryan K. <rya...@gm...> - 2006-09-19 21:13:41
|
If I change numerix to numarray, this goes away. Is anyone else out there successfully running svn mpl with: In [2]: numpy.__version__ Out[2]: '1.0rc1.dev3190' In [3]: matplotlib.__version__ Out[3]: '0.87.5' Thanks, Ryan On 9/19/06, Ryan Krauss <rya...@gm...> wrote: > I just upgraded matplotlib, numpy, scipy, and ipython to currect svn. > I am getting a segfault with pylab: > > Python 2.4.2 (#2, Sep 30 2005, 21:19:01) > [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import pylab > loaded rc file /home/ryan/.matplotlib/matplotlibrc > matplotlib version 0.87.5 > verbose.level debug-annoying > interactive is False > platform is linux2 > loaded modules: ['pylab', '_bisect', '__future__', 'copy_reg', > 'sre_compile', 'distutils', 'itertools', '_sre', '__main__', 'popen2', > 'site', '__builtin__', 'datetime', 'distutils.re', 'matplotlib.re', > 'matplotlib.tempfile', 'encodings', 'pytz.datetime', 'shutil', > 'distutils.string', 'dateutil', 'matplotlib.datetime', 'posixpath', > '_random', 'tempfile', 'errno', 'matplotlib.warnings', 'binascii', > 'encodings.codecs', 'sre_constants', 're', 'matplotlib.md5', > 'os.path', 'pytz.sys', '_codecs', 'distutils.sysconfig', > 'encodings.exceptions', 'pytz.sets', 'math', 'fcntl', 'stat', > 'zipimport', 'string', 'warnings', 'encodings.types', 'UserDict', > 'encodings.utf_8', 'matplotlib', 'distutils.os', 'sys', 'pytz.tzinfo', > 'pytz', 'matplotlib.__future__', 'codecs', 'matplotlib.sys', > 'readline', 'matplotlib.pytz', 'types', 'md5', 'matplotlib.dateutil', > 'matplotlib.os', 'thread', 'sre', 'bisect', 'matplotlib.distutils', > 'signal', 'distutils.errors', 'random', 'linecache', > 'matplotlib.shutil', 'posix', 'encodings.aliases', 'sets', > 'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.sys', 'os', > 'strop'] > numerix numpy 1.0rc1.dev3190 > font search path ['/usr/lib/python2.4/site-packages/matplotlib/mpl-data'] > trying fontname > /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoIt.ttf > trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/cmsy10.ttf > trying fontname > /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoBd.ttf > trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraBI.ttf > trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/cmex10.ttf > trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/Vera.ttf > $HOME=/home/ryan > CONFIGDIR=/home/ryan/.matplotlib > loaded ttfcache file /home/ryan/.matplotlib/ttffont.cache > Segmentation fault > > > Help me please. I am running Ubuntu Breezy > > Ryan > |
|
From: Ryan K. <rya...@gm...> - 2006-09-19 21:10:50
|
I just upgraded matplotlib, numpy, scipy, and ipython to currect svn. I am getting a segfault with pylab: Python 2.4.2 (#2, Sep 30 2005, 21:19:01) [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab loaded rc file /home/ryan/.matplotlib/matplotlibrc matplotlib version 0.87.5 verbose.level debug-annoying interactive is False platform is linux2 loaded modules: ['pylab', '_bisect', '__future__', 'copy_reg', 'sre_compile', 'distutils', 'itertools', '_sre', '__main__', 'popen2', 'site', '__builtin__', 'datetime', 'distutils.re', 'matplotlib.re', 'matplotlib.tempfile', 'encodings', 'pytz.datetime', 'shutil', 'distutils.string', 'dateutil', 'matplotlib.datetime', 'posixpath', '_random', 'tempfile', 'errno', 'matplotlib.warnings', 'binascii', 'encodings.codecs', 'sre_constants', 're', 'matplotlib.md5', 'os.path', 'pytz.sys', '_codecs', 'distutils.sysconfig', 'encodings.exceptions', 'pytz.sets', 'math', 'fcntl', 'stat', 'zipimport', 'string', 'warnings', 'encodings.types', 'UserDict', 'encodings.utf_8', 'matplotlib', 'distutils.os', 'sys', 'pytz.tzinfo', 'pytz', 'matplotlib.__future__', 'codecs', 'matplotlib.sys', 'readline', 'matplotlib.pytz', 'types', 'md5', 'matplotlib.dateutil', 'matplotlib.os', 'thread', 'sre', 'bisect', 'matplotlib.distutils', 'signal', 'distutils.errors', 'random', 'linecache', 'matplotlib.shutil', 'posix', 'encodings.aliases', 'sets', 'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.sys', 'os', 'strop'] numerix numpy 1.0rc1.dev3190 font search path ['/usr/lib/python2.4/site-packages/matplotlib/mpl-data'] trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoIt.ttf trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/cmsy10.ttf trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoBd.ttf trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/VeraBI.ttf trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/cmex10.ttf trying fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/Vera.ttf $HOME=/home/ryan CONFIGDIR=/home/ryan/.matplotlib loaded ttfcache file /home/ryan/.matplotlib/ttffont.cache Segmentation fault Help me please. I am running Ubuntu Breezy Ryan |
|
From: Ken M. <mc...@ii...> - 2006-09-19 21:06:39
|
On 09/19/06 15:22, John Hunter wrote: >>"Kenny" == Kenny Ortmann <ya...@em...> writes: > > Kenny> I'm writing a program with a graph. You have to select > Kenny> segments of the graph, which requires 2 points. > > Kenny> working with widgets is new to me and im used to working > Kenny> with while loops and what not. I've been just checking to > Kenny> see if i have 0 or 1 points in the on_point wxmpl code, and > Kenny> then if i have 1 and the next point is good opening a > Kenny> dialog to ask and then resetting number of pionts to 0. > > Kenny> anyone have any better ideas of how to do this? the amount > Kenny> of "global"/"self.points" variables is driving me nuts > > If you want to select a horizontal or vertical region of the graph, > eg, xmin, xmax, the SpanSelector widget is your friend. Although there isn't a wxmpl event for measuring only horizontal or vertical regions, you can use the wxmpl.EVT_SELECTION event to pick a rectangular region. For an example of how that works, you can look at `demos/picking_points.py' in the wxmpl source distribution. Without knowing more about the application it's hard to recommend what to do to improve things. Perhaps you could add a button to the wxPython application that enables selection, so that the user clicks it and then picks the area of the plot to apply the function to? You could also subclass wxmpl.PlotPanel, add some basic support for the two-point selections, and then reuse that code in your application. > I believe recent versions of the wxmpl code worth with mpl events and > widgets, but I haven't tested this. Although it is possible to modify `wxmpl.py' to emit mpl events, I'm afraid that wxmpl still doesn't support mpl events or widgets out-of-the-box. There's still too much that can break if the two event-handling systems are incorrectly mixed in an application. Ken |
|
From: John H. <jdh...@ac...> - 2006-09-19 20:37:04
|
>>>>> "Kenny" == Kenny Ortmann <ya...@em...> writes:
Kenny> I'm writing a program with a graph. You have to select
Kenny> segments of the graph, which requires 2 points.
Kenny> working with widgets is new to me and im used to working
Kenny> with while loops and what not. I've been just checking to
Kenny> see if i have 0 or 1 points in the on_point wxmpl code, and
Kenny> then if i have 1 and the next point is good opening a
Kenny> dialog to ask and then resetting number of pionts to 0.
Kenny> anyone have any better ideas of how to do this? the amount
Kenny> of "global"/"self.points" variables is driving me nuts
If you want to select a horizontal or vertical region of the graph,
eg, xmin, xmax, the SpanSelector widget is your friend. I believe
recent versions of the wxmpl code worth with mpl events and widgets,
but I haven't tested this.
#!/usr/bin/env python
"""
The SpanSelector is a mouse widget to select a vmin/vmax
range. When you left click drag in the axes, a rectangle shows the
selected region. When you release, the rectangle disappears and a
callback is called with min/max.
"""
import pylab
from matplotlib.widgets import SpanSelector
fig = pylab.figure(figsize=(8,6))
ax = fig.add_subplot(211, axisbg='#FFFFCC')
x,y = 4*(pylab.rand(2,100)-.5)
ax.plot(x,y,'o')
ax.set_xlim(-2,2)
ax.set_ylim(-2,2)
ax.set_title('Press left mouse button and drag to test')
def onselect(vmin, vmax):
print vmin, vmax
# set useblit True on gtkagg for enhanced performance
span = SpanSelector(ax, onselect, 'horizontal', useblit=False,
rectprops=dict(alpha=0.5, facecolor='red') )
ax2 = fig.add_subplot(212)
ax2.plot([1,2,3])
span2 = SpanSelector(ax2, onselect, 'vertical')
pylab.show()
|
|
From: Kenny O. <ya...@em...> - 2006-09-19 20:13:57
|
I'm writing a program with a graph. You have to select segments of the
graph, which requires 2 points.
is there a way to write this with a while loop, where
while(morepoints == "yes")
{
while(waiting on point 1)
{
check if point 1 is a good point
if point 1 is good
break from while
}
while(waiting on point 2)
{
check if point 2 is a good point
if point 2 is good
break from while
}
ask user if they want more points
if yes break from while
}
working with widgets is new to me and im used to working with while loops
and what not. I've been just checking to see if i have 0 or 1 points in
the on_point wxmpl code, and then if i have 1 and the next point is good
opening a dialog to ask and then resetting number of pionts to 0.
anyone have any better ideas of how to do this? the amount of
"global"/"self.points" variables is driving me nuts
|
|
From: Lionel R. <lro...@li...> - 2006-09-19 15:11:53
|
hi all,
I have a problem with datestr2num. All my dates are sorted in %d/%m/%Y format,
but datestr2num seems to take days for months before the 12th day:
100>datas['Dates']
Sortie[100]:
recarray([05/01/2006, 06/01/2006, 07/01/2006, 08/01/2006, 09/01/2006,
10/01/2006, 11/01/2006, 12/01/2006, 13/01/2006, 14/01/2006,
15/01/2006, 16/01/2006, 17/01/2006, 18/01/2006, 19/01/2006,
20/01/2006, 21/01/2006, 22/01/2006, 23/01/2006, 24/01/2006,
25/01/2006, 26/01/2006, 27/01/2006, 28/01/2006, 29/01/2006,
30/01/2006, 31/01/2006, 01/02/2006, 02/02/2006, 03/02/2006,
04/02/2006, 05/02/2006, 06/02/2006, 07/02/2006, 08/02/2006,
09/02/2006, 10/02/2006, 11/02/2006, 12/02/2006, 13/02/2006,
14/02/2006, 15/02/2006, 16/02/2006, 17/02/2006, 18/02/2006,
19/02/2006, 20/02/2006, 21/02/2006, 22/02/2006, 23/02/2006,
24/02/2006, 25/02/2006, 26/02/2006, 27/02/2006, 28/02/2006,
01/03/2006],
dtype='|S10')
101>array([datetime.strftime(x, "%d/%m/%Y") for x in
num2date(datestr2num(datas['Dates']) )])
Sortie[101]:
array([01/05/2006, 01/06/2006, 01/07/2006, 01/08/2006, 01/09/2006,
01/10/2006, 01/11/2006, 01/12/2006, 13/01/2006, 14/01/2006,
15/01/2006, 16/01/2006, 17/01/2006, 18/01/2006, 19/01/2006,
20/01/2006, 21/01/2006, 22/01/2006, 23/01/2006, 24/01/2006,
25/01/2006, 26/01/2006, 27/01/2006, 28/01/2006, 29/01/2006,
30/01/2006, 31/01/2006, 02/01/2006, 02/02/2006, 02/03/2006,
02/04/2006, 02/05/2006, 02/06/2006, 02/07/2006, 02/08/2006,
02/09/2006, 02/10/2006, 02/11/2006, 02/12/2006, 13/02/2006,
14/02/2006, 15/02/2006, 16/02/2006, 17/02/2006, 18/02/2006,
19/02/2006, 20/02/2006, 21/02/2006, 22/02/2006, 23/02/2006,
24/02/2006, 25/02/2006, 26/02/2006, 27/02/2006, 28/02/2006,
03/01/2006],
dtype='|S10')
--
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
|
|
From: John H. <jdh...@ac...> - 2006-09-19 14:51:27
|
I had a problem yesterday running a script in interactive mode in
ipython -pylab using the gtk backend. In the script there was some
expensive computation, and I wanted to break out of it by hitting
CTRL-C. Because of the nastiness of signal handling across threads,
this isn't possible, though Fernando tells me it is keeping him up
nights. ipython prints a message that it got a CTRL-C, but can't
cause the code running in the gui thread to exit cleanly.
One hack/workaround solution is to check for the IPython.Shell state
variable at various points in your code
# some script you want to run from ipython -pylab or ipython -gthread
# with "run"
import IPython.Shell
from pylab import figure, show, setp
def ipbreak():
if IPython.Shell.KBINT:
IPython.Shell.KBINT = False
raise SystemExit
for i in somerange:
do_something_very_expensive()
ipbreak()
show()
Then if you want to interrupt the script, you can with CTRL-C. Of
course the trick is to remember to sprinkle these throughout your code
ahead of time. The script will run normally outside of ipython, and
as long as the function call and boolean check are cheap compared to
your expensive function, shouldn't hurt performance.
Thanks Fernando for the suggestion!
JDH
|