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
(10) |
2
(11) |
3
(4) |
4
(2) |
5
(10) |
6
(20) |
7
(18) |
8
(32) |
9
(15) |
10
(2) |
11
(5) |
12
(7) |
13
(13) |
14
(9) |
15
(17) |
16
(10) |
17
(4) |
18
(7) |
19
(15) |
20
(16) |
21
(10) |
22
(19) |
23
(13) |
24
(4) |
25
(5) |
26
(8) |
27
(10) |
28
(17) |
29
(7) |
30
(18) |
31
(2) |
On 2008年5月02日 10:21:50 -0300, Zoho Vignochi wrote: > On Fri, 2008年05月02日 at 08:33 -0400, Michael Droettboom wrote: >> I converted your example to a standalone one (attached), and it does >> work for me. It's hard to say what may be going wrong for you without >> knowing what a_steady and L_range are and what the limits of the axes >> are getting set to etc. Can you provide a fully self-contained script >> that exhibits this behavior? Also, what version of matplotlib and >> platform are you using? >> >> Cheers, >> Mike > > Hello: > > I am running Debian sid on Powerpc and I have the Debian sid > python-matplotlib version 0.91.2-2. Your stand alone script also works > for me. Strange. > > I have included the script I am using set to plot 5 lines. The script is > designed to solve the Daisyworld model proposed by James Lovelock in the > early 80's. Thank you for your help! > > Zoho The problem was with the line: lines.set_array(L_range) If I just delete it everything goes well. I was following along from the line_collection2.py included in the examples. Thanks for your help! Zoho
Is it possible to plot dates on the y axis? Regards, Kenneth Miller
I think you've run into this bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1738494&group_id=80706&atid=560720 matplotlib-0.90.1 is not compatible with Python 2.5 due to a change made in cp1252 in Python 2.5. You can try applying the patch included with the bug report, or upgrading to matplotlib 0.91.2. A bug should probably be submitted to the Debian packagers (I suspect they will want to apply the patch if they don't want to upgrade the version). I'll look into doing that. Cheers, Mike Lorenzo Isella wrote: > Dear All, > I am running Debian testing on my box and I use pylab as installed > from the standard repositories. > Unfortunately, it seems that there is something broken either with > pylab or Python (I have been upgrading the system these days) since I > am now unable to create .pdf files: > For instance, consider the following simple script: > > #! /usr/bin/env python > > import scipy as s > import numpy as n > import pylab as p > > > a=s.linspace(0.,40.,20) > b=s.linspace(-20.,90.,20) > > fig = p.figure() > axes = fig.gca() > > > axes.plot(a,b, "bo",label="test plot") > p.xlabel('Time') > p.ylabel('Number of clusters') > p.title("Evolution Number of clusters") > p.grid(True) > cluster_name="test.pdf" > axes.legend() > p.savefig(cluster_name) > > p.clf() > > > The output generated by the script is: > > Traceback (most recent call last): > File "<stdin>", line 25, in <module> > File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line > 796, in savefig > return fig.savefig(*args, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line > 759, in savefig > self.canvas.print_figure(*args, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", > line 114, in print_figure > orientation, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 497, in print_figure > printfunc(filename, dpi, facecolor, edgecolor, orientation, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", > line 1395, in print_figure > file.close() > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", > line 401, in close > self.writeFonts() > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", > line 456, in writeFonts > fontdictObject = self.embedTTF(filename) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", > line 508, in embedTTF > widths = [ get_char_width(charcode) for charcode in > range(firstchar, lastchar+1) ] > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", > line 505, in get_char_width > unicode = cp1252.decoding_map[charcode] or 0 > AttributeError: 'module' object has no attribute 'decoding_map' > > and no pdf file is produced. However, if I try saving it as a .png > file (by setting cluster_name="test.png"), then everything works > fine. > This is very annoying and I wonder if anyone else is having the same > problem and can put forward a suggestion to help. > Many thanks > > Lorenzo > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Dear All, I am running Debian testing on my box and I use pylab as installed from the standard repositories. Unfortunately, it seems that there is something broken either with pylab or Python (I have been upgrading the system these days) since I am now unable to create .pdf files: For instance, consider the following simple script: #! /usr/bin/env python import scipy as s import numpy as n import pylab as p a=s.linspace(0.,40.,20) b=s.linspace(-20.,90.,20) fig = p.figure() axes = fig.gca() axes.plot(a,b, "bo",label="test plot") p.xlabel('Time') p.ylabel('Number of clusters') p.title("Evolution Number of clusters") p.grid(True) cluster_name="test.pdf" axes.legend() p.savefig(cluster_name) p.clf() The output generated by the script is: Traceback (most recent call last): File "<stdin>", line 25, in <module> File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 796, in savefig return fig.savefig(*args, **kwargs) File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 759, in savefig self.canvas.print_figure(*args, **kwargs) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 114, in print_figure orientation, **kwargs) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 497, in print_figure printfunc(filename, dpi, facecolor, edgecolor, orientation, **kwargs) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", line 1395, in print_figure file.close() File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", line 401, in close self.writeFonts() File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", line 456, in writeFonts fontdictObject = self.embedTTF(filename) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", line 508, in embedTTF widths = [ get_char_width(charcode) for charcode in range(firstchar, lastchar+1) ] File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", line 505, in get_char_width unicode = cp1252.decoding_map[charcode] or 0 AttributeError: 'module' object has no attribute 'decoding_map' and no pdf file is produced. However, if I try saving it as a .png file (by setting cluster_name="test.png"), then everything works fine. This is very annoying and I wonder if anyone else is having the same problem and can put forward a suggestion to help. Many thanks Lorenzo
On Fri, 2008年05月02日 at 08:33 -0400, Michael Droettboom wrote: > I converted your example to a standalone one (attached), and it does > work for me. It's hard to say what may be going wrong for you without > knowing what a_steady and L_range are and what the limits of the axes > are getting set to etc. Can you provide a fully self-contained script > that exhibits this behavior? Also, what version of matplotlib and > platform are you using? > > Cheers, > Mike Hello: I am running Debian sid on Powerpc and I have the Debian sid python-matplotlib version 0.91.2-2. Your stand alone script also works for me. Strange. I have included the script I am using set to plot 5 lines. The script is designed to solve the Daisyworld model proposed by James Lovelock in the early 80's. Thank you for your help! Zoho
I converted your example to a standalone one (attached), and it does work for me. It's hard to say what may be going wrong for you without knowing what a_steady and L_range are and what the limits of the axes are getting set to etc. Can you provide a fully self-contained script that exhibits this behavior? Also, what version of matplotlib and platform are you using? Cheers, Mike Zoho Vignochi wrote: > On 2008年5月01日 22:00:33 +0000, Zoho Vignochi wrote: > > >> Hello: >> >> I have a script in which I have been using plot to plot numerous lines >> on the same graph. I recently wanted to see how Line Collections work so >> I tried porting it over. Everything successful except I can't seem to >> get each line to be a different color. Here is the relevant section: >> >> # Make a list of colors cycling through the rgbcmyk series. >> colors = [colorConverter.to_rgba(c) for c in >> ('r','g','b','c','y','m','k')] >> >> fig = plt.figure() >> ax = fig.add_subplot(1,1,1) >> lines = collections.LineCollection([zip(L_range, item) for item >> in a_steady]) >> lines.set_array(L_range) >> lines.set_color(colors) >> ax.add_collection(lines, autolim=True) >> >> However every line is blue. Any ideas? >> >> > I should mention my import lines: > > import numpy as np > from numpy import sum, zeros, less, where > import scipy as sp > > import matplotlib.pyplot as plt > from matplotlib import collections > from matplotlib.colors import colorConverter > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Sorry about that; it turns out it is GSview rendering extra whitspace. The bounding box is, in fact, fine. Now I feel silly ;-). ----- Original Message ---- From: izak marais <iza...@ya...> To: mat...@li... Sent: Friday, May 2, 2008 12:03:44 PM Subject: eps bounding box broken Hi I have recently upgraded to 0.91.2 (from 0.8<something>). Firstof all: thanks to the developers for the improved documentation andexcellent software. However, now my eps saving appears to be broken: plot([1,2,3]) savefig('test.eps') results in a massive whitespace borders in the saved eps figure. Fidgeting with ps.papersize in the rc file only makes it worse or introduces clipping. (The new ability to save to pdf works nicely though and produces the correct, tight, bounding box.) Is this behavior normal? Any ideas on how to fix it? Thanks Izak Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Hi I have recently upgraded to 0.91.2 (from 0.8<something>). Firstof all: thanks to the developers for the improved documentation andexcellent software. However, now my eps saving appears to be broken: plot([1,2,3]) savefig('test.eps') results in a massive whitespace borders in the saved eps figure. Fidgeting with ps.papersize in the rc file only makes it worse or introduces clipping. (The new ability to save to pdf works nicely though and produces the correct, tight, bounding box.) Is this behavior normal? Any ideas on how to fix it? Thanks Izak ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
On Thu, May 1, 2008 at 4:32 PM, Michael Hearne <mh...@us...> wrote: > legend(('s1','s2')) > > The resulting legend shows the symbols twice (two little red dots and > two blue ones). Does anyone else get this, and if so, do you know > what the problem is? You can tell the legend how many points to draw using the numpoints kwarg. See the docs at http://matplotlib.sourceforge.net/matplotlib.legend.html#Legend Check out the example code below -- in addition tomaking the numpoints setting, it also fixes the tick format overlap problem import datetime import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mpldates import matplotlib.ticker as ticker date1 = datetime.date( 1952, 1, 1 ) date2 = datetime.date( 2004, 4, 12 ) delta = datetime.timedelta(days=100) dates = mpldates.drange(date1, date2, delta) s1 = np.random.rand(len(dates)) fig = plt.figure() ax = fig.add_subplot(111) ax.plot_date(dates, s1,'r.') ax.hold(True) s2 = np.random.rand(len(dates)) ax.plot_date(dates, s2,'bo') ax.legend(('s1','s2'), numpoints=1) # only write ticklabels on the decades def fmtticks(x, pos=None): dt = mpldates.num2date(x) if dt.year%10: return '' return dt.strftime('%Y') # this fizes yhe tick labels ax.xaxis.set_major_formatter(ticker.FuncFormatter(fmtticks)) # this fixes the toolbar x coord ax.fmt_xdata = mpldates.DateFormatter('%Y-%m-%d') # this rotates the ticklabels to help with overlapping fig.autofmt_xdate() plt.show() JDH
Michael Hearne wrote: > Jeff (or anyone) - I recently reinstalled all of my numpy/scipy > related packages, including matplotlib, from a Mac OS X installer > called the SciPy SuperPack. > > (http://macinscience.org/?page_id=6) > > All of the packages he includes work really well. > > However, after I used easy_install to grab Basemap, I found I can't > import it. I was wondering if you could give me a pointer on how to > tell Python where to look for Basemap? > > Thanks, > > Mike Hearne Mike: Unfortunately, if matplotlib was installed as an egg, you can't install Basemap. This bug has been fixed in 0.98pre, but that won't help you unless you compile matplotlib and Basemap from svn. I think you can manually fix it by adding some symbolic links manually in the egg directory structure, but I don't remember the details. -Jeff > > My site-packages directory looks like this: > -rw-rw-r-- 1 root admin 119 Oct 5 2007 README > drwxr-xr-x 20 root admin 680 Apr 30 16:43 > basemap-0.9.9.1-py2.5-macosx-10.5-i386.egg > -rw-r--r-- 1 root admin 555 Apr 30 16:43 easy-install.pth > drwxr-xr-x 4 root admin 136 Apr 30 16:49 > ipython-0.8.3.svn.r3001-py2.5.egg > drwxr-xr-x 12 root admin 408 Apr 30 16:48 > matplotlib-0.98pre-py2.5-macosx-10.3-i386.egg > drwxr-xr-x 11 root admin 374 Apr 17 15:03 > matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg > drwxr-xr-x 5 root admin 170 Apr 30 16:38 nose-0.10.1-py2.5.egg > drwxr-xr-x 4 root admin 136 Apr 17 15:03 > numpy-1.0.5.dev4954-py2.5-macosx-10.5-i386.egg > drwxr-xr-x 4 root admin 136 Apr 30 16:48 > numpy-1.1.0.dev5077-py2.5-macosx-10.3-i386.egg > drwxr-xr-x 4 root admin 136 Apr 17 15:04 > pymc-2.0DEV_r686-py2.5-macosx-10.3-i386.egg > drwxr-xr-x 4 root admin 136 Apr 30 16:49 > pymc-2.0DEV_r709-py2.5-macosx-10.3-i386.egg > drwxr-xr-x 6 root admin 204 Apr 17 15:04 > readline-2.5.1-py2.5-macosx-10.5-i386.egg > drwxr-xr-x 4 root admin 136 Apr 17 15:04 > scipy-0.7.0.dev4075-py2.5-macosx-10.5-i386.egg > drwxr-xr-x 4 root admin 136 Apr 30 16:48 > scipy-0.7.0.dev4174-py2.5-macosx-10.3-i386.egg > -rw-r--r-- 1 root admin 324858 Apr 17 15:03 > setuptools-0.6c8-py2.5.egg > -rw-r--r-- 1 root admin 29 Apr 30 16:41 setuptools.pth > > The easy-install.pth file looks like this: > import sys; sys.__plen = len(sys.path) > ./setuptools-0.6c8-py2.5.egg > ./readline-2.5.1-py2.5-macosx-10.5-i386.egg > ./ipython-0.8.3.svn.r3001-py2.5.egg > ./numpy-1.1.0.dev5077-py2.5-macosx-10.3-i386.egg > ./matplotlib-0.98pre-py2.5-macosx-10.3-i386.egg > ./scipy-0.7.0.dev4174-py2.5-macosx-10.3-i386.egg > ./pymc-2.0DEV_r709-py2.5-macosx-10.3-i386.egg > ./nose-0.10.1-py2.5.egg > ./basemap-0.9.9.1-py2.5-macosx-10.5-i386.egg > import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; > p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = > p+len(new) > > -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328
Jeff (or anyone) - I recently reinstalled all of my numpy/scipy related packages, including matplotlib, from a Mac OS X installer called the SciPy SuperPack. (http://macinscience.org/?page_id=6) All of the packages he includes work really well. However, after I used easy_install to grab Basemap, I found I can't import it. I was wondering if you could give me a pointer on how to tell Python where to look for Basemap? Thanks, Mike Hearne My site-packages directory looks like this: -rw-rw-r-- 1 root admin 119 Oct 5 2007 README drwxr-xr-x 20 root admin 680 Apr 30 16:43 basemap-0.9.9.1-py2.5- macosx-10.5-i386.egg -rw-r--r-- 1 root admin 555 Apr 30 16:43 easy-install.pth drwxr-xr-x 4 root admin 136 Apr 30 16:49 ipython-0.8.3.svn.r3001-py2.5.egg drwxr-xr-x 12 root admin 408 Apr 30 16:48 matplotlib-0.98pre- py2.5-macosx-10.3-i386.egg drwxr-xr-x 11 root admin 374 Apr 17 15:03 matplotlib-0.98pre- py2.5-macosx-10.5-i386.egg drwxr-xr-x 5 root admin 170 Apr 30 16:38 nose-0.10.1-py2.5.egg drwxr-xr-x 4 root admin 136 Apr 17 15:03 numpy-1.0.5.dev4954- py2.5-macosx-10.5-i386.egg drwxr-xr-x 4 root admin 136 Apr 30 16:48 numpy-1.1.0.dev5077- py2.5-macosx-10.3-i386.egg drwxr-xr-x 4 root admin 136 Apr 17 15:04 pymc-2.0DEV_r686-py2.5- macosx-10.3-i386.egg drwxr-xr-x 4 root admin 136 Apr 30 16:49 pymc-2.0DEV_r709-py2.5- macosx-10.3-i386.egg drwxr-xr-x 6 root admin 204 Apr 17 15:04 readline-2.5.1-py2.5- macosx-10.5-i386.egg drwxr-xr-x 4 root admin 136 Apr 17 15:04 scipy-0.7.0.dev4075- py2.5-macosx-10.5-i386.egg drwxr-xr-x 4 root admin 136 Apr 30 16:48 scipy-0.7.0.dev4174- py2.5-macosx-10.3-i386.egg -rw-r--r-- 1 root admin 324858 Apr 17 15:03 setuptools-0.6c8- py2.5.egg -rw-r--r-- 1 root admin 29 Apr 30 16:41 setuptools.pth The easy-install.pth file looks like this: import sys; sys.__plen = len(sys.path) ./setuptools-0.6c8-py2.5.egg ./readline-2.5.1-py2.5-macosx-10.5-i386.egg ./ipython-0.8.3.svn.r3001-py2.5.egg ./numpy-1.1.0.dev5077-py2.5-macosx-10.3-i386.egg ./matplotlib-0.98pre-py2.5-macosx-10.3-i386.egg ./scipy-0.7.0.dev4174-py2.5-macosx-10.3-i386.egg ./pymc-2.0DEV_r709-py2.5-macosx-10.3-i386.egg ./nose-0.10.1-py2.5.egg ./basemap-0.9.9.1-py2.5-macosx-10.5-i386.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p +len(new)