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





Showing results of 290

<< < 1 2 3 4 5 .. 12 > >> (Page 3 of 12)
From: Andrew S. <str...@as...> - 2009年08月28日 06:31:28
Hi,
I'm hoping to elicit the help of a developer who can fix the last
remaining failing test on the Mac buildslave. In a nutshell, there looks
to be a regression with the interaction between Axes.autoscale_view()
and the xunits kwarg of Axes.plot(). I have posted a bug report at
https://sourceforge.net/tracker/?func=detail&aid=2846058&group_id=80706&atid=560720
I'd like to ask for a bit of help fixing this one, because I'd then like
to work on a few more things, which I think will be easier (mentally, at
least), if we have all tests passing on at least one platform.
* borrow (and maybe extend) scipy's known failing test decorator so that
known issues don't elicit test failures. (E.g. font placement
differences between Ubuntu and Mac OS X. see
https://sourceforge.net/tracker/?func=detail&aid=2843243&group_id=80706&atid=560720
for more info.)
* automatically send notifications to somewhere (to where?) when tests
start failing
* write documentation for developers and patch submitters describing how
to write unit tests for MPL -- both image based and more traditional kinds.
* get my Windows virtual machine doing this same dance
* automatically upload daily builds of binaries for Win and Mac
* adding more machines to the buildbot system
Of course, I'm happy to help if anyone wants to contribute to these or
other ideas. I plan to slowly chip away at this stuff over the coming
weeks and months.
-Andrew
From: Gael V. <gae...@no...> - 2009年08月28日 05:31:51
On Thu, Aug 27, 2009 at 04:57:55PM -0500, John Hunter wrote:
> One of my colleagues want to use PdfPages to create several mpl
> figures in one pdf document. It would be nice to be able to write
> some text in there directly. One could use the matplotlib.text.Text
> and add it to your figure, and maybe this is the way to go, but is it
> possible or desirable to expose a simple bulk text field in PdfPage
> and PdfPages
I could use that too :).
Gaël
From: John H. <jd...@gm...> - 2009年08月27日 21:58:09
One of my colleagues want to use PdfPages to create several mpl
figures in one pdf document. It would be nice to be able to write
some text in there directly. One could use the matplotlib.text.Text
and add it to your figure, and maybe this is the way to go, but is it
possible or desirable to expose a simple bulk text field in PdfPage
and PdfPages
From: Reinier H. <re...@he...> - 2009年08月27日 11:11:35
Hi John,
I sorted the tracker issue with help of SF support: apparently the
tracker component has its own set of permissions. Once you click
'Tracker' in the menu, an extra option 'Admin' will appear. Then click
'Bugs', then 'Add/Update Users and Permissions' and you can change
permissions. I also found this not so easy to find, but it does the
trick...
Anyway, you can assign mplot3d tickets to me now!
Cheers,
Reinier
On Sat, Aug 8, 2009 at 2:33 PM, John Hunter<jd...@gm...> wrote:
> Normally, I can assign bugs on the tracker to a developer, but for
> some reason even though you are permissioned in the
> "Members" area for the tracker, your sf login isn't showing up in the
> drop down of developers on the bugs page. If you are unable o manage
> the bug, eg to change the resolution or status, let me know after you
> have taken a look at these and I can close or update them as
> necessary.
>
> JDH
-- 
Reinier Heeres
Tel: +31 6 10852639
From: Jeff W. <js...@fa...> - 2009年08月26日 14:59:21
Michael Hearne wrote:
> Jeff - Thanks, that seemed to solve _that_ problem. However, after 
> going through the build process (again, successfully), I get the 
> following when trying to import Basemap:
>
> from mpl_toolkits.basemap import Basemap
> File 
> "/usr/local/epd/lib/python2.5/site-packages/mpl_toolkits/basemap/__init__.py", 
> line 43, in <module>
> import _geoslib, netcdftime
> ImportError: libgeos_c.so.1: cannot open shared object file: No such 
> file or directory
>
> I had to compile geos because this version of Basemap didn't seem to 
> work with the version of geos that EPD uses. I built GEOS in a local 
> home directory. Do I need to build it in a global location (like 
> /usr/local)?
>
> --Mike
Mike: Sounds like you need to modify LD_LIBRARY_PATH to add the 
directory where you installed libgeos.
-Jeff
> On Aug 25, 2009, at 3:05 PM, Jeff Whitaker wrote:
>
>> Michael Hearne wrote:
>>> I just built matplotlib and basemap from source on a RHEL system, 
>>> with EPD as my base Python installation.
>>>
>>> The build procedure for matplotlib was fairly straightforward, as 
>>> was basemap (once I read Jeff's documentation on installing).
>>>
>>> However, once I try to import basemap, I get an error about dbflib 
>>> (ipython session below):
>>>
>>
>> Mike: Try editing setup.cfg and changing
>>
>> pyshapelib = True
>>
>> It's set to 'auto' by default. I bet it's detecting an existing 
>> pyshapelib install, but then can find all the parts of it that it needs.
>>
>> -Jeff
>>> In [1]: from mpl_toolkits.basemap import Basemap
>>> --------------------------------------------------------------------------- 
>>>
>>> ImportError Traceback (most recent 
>>> call last)
>>>
>>> /home/shake/losspager/1.15/<ipython console> in <module>()
>>>
>>> /usr/local/epd/lib/python2.5/site-packages/mpl_toolkits/basemap/ 
>>> __init__.py in <module>()
>>> 36 from matplotlib.lines import Line2D
>>> 37 from matplotlib.transforms import Bbox
>>> ---> 38 import pyproj, sys, os, math, dbflib
>>> 39 from proj import Proj
>>> 40 import numpy as np
>>>
>>> ImportError: No module named dbflib
>>>
>>> Where is dbflib supposed to be?
>>>
>>> Thanks,
>>>
>>> Mike
>>>
>>> ------------------------------------------------------------------------------ 
>>>
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
>>> 30-Day trial. Simplify your report design, integration and 
>>> deployment - and focus on what you do best, core application coding. 
>>> Discover what's new with Crystal Reports now. 
>>> http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>
>>
>> -- 
>> Jeffrey S. Whitaker Phone : (303)497-6313
>> Meteorologist FAX : (303)497-6449
>> NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
>> 325 Broadway Office : Skaggs Research Cntr 1D-113
>> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
>>
>
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Michael H. <mh...@us...> - 2009年08月26日 14:11:16
Jeff - Thanks, that seemed to solve _that_ problem. However, after 
going through the build process (again, successfully), I get the 
following when trying to import Basemap:
from mpl_toolkits.basemap import Basemap
 File "/usr/local/epd/lib/python2.5/site-packages/mpl_toolkits/ 
basemap/__init__.py", line 43, in <module>
 import _geoslib, netcdftime
ImportError: libgeos_c.so.1: cannot open shared object file: No such 
file or directory
I had to compile geos because this version of Basemap didn't seem to 
work with the version of geos that EPD uses. I built GEOS in a local 
home directory. Do I need to build it in a global location (like /usr/ 
local)?
--Mike
On Aug 25, 2009, at 3:05 PM, Jeff Whitaker wrote:
> Michael Hearne wrote:
>> I just built matplotlib and basemap from source on a RHEL system, 
>> with EPD as my base Python installation.
>>
>> The build procedure for matplotlib was fairly straightforward, as 
>> was basemap (once I read Jeff's documentation on installing).
>>
>> However, once I try to import basemap, I get an error about dbflib 
>> (ipython session below):
>>
>
> Mike: Try editing setup.cfg and changing
>
> pyshapelib = True
>
> It's set to 'auto' by default. I bet it's detecting an existing 
> pyshapelib install, but then can find all the parts of it that it 
> needs.
>
> -Jeff
>> In [1]: from mpl_toolkits.basemap import Basemap
>> ---------------------------------------------------------------------------
>> ImportError Traceback (most recent 
>> call last)
>>
>> /home/shake/losspager/1.15/<ipython console> in <module>()
>>
>> /usr/local/epd/lib/python2.5/site-packages/mpl_toolkits/basemap/ 
>> __init__.py in <module>()
>> 36 from matplotlib.lines import Line2D
>> 37 from matplotlib.transforms import Bbox
>> ---> 38 import pyproj, sys, os, math, dbflib
>> 39 from proj import Proj
>> 40 import numpy as np
>>
>> ImportError: No module named dbflib
>>
>> Where is dbflib supposed to be?
>>
>> Thanks,
>>
>> Mike
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 
>> 2008 30-Day trial. Simplify your report design, integration and 
>> deployment - and focus on what you do best, core application 
>> coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
>
> -- 
> Jeffrey S. Whitaker Phone : (303)497-6313
> Meteorologist FAX : (303)497-6449
> NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
> 325 Broadway Office : Skaggs Research Cntr 1D-113
> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
>
From: John H. <jd...@gm...> - 2009年08月26日 02:20:01
On Tue, Aug 25, 2009 at 9:04 PM, Eric Bruning<eri...@gm...> wrote:
> Hi Ariel,
>
> Thanks for the suggestion. Combining John's new makefile with the
> changes to the Python.framework Makefile yielded:
> distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET
> mismatch: now "10.4" but "10.5" during configure.
What if you edit the mak.osx file and use 10.5 for the
MACOSX_DEPLOYMENT_TARGET -- I had set it to 10.4 for building the
installers, but there is no need for that when building from src for a
local install.
What if you simply remove all references to MACOSX_DEPLOYMENT_TARGET
in the make.osx file? Does that work for you?
From: Eric B. <eri...@gm...> - 2009年08月26日 02:04:21
Hi Ariel,
Thanks for the suggestion. Combining John's new makefile with the
changes to the Python.framework Makefile yielded:
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET
mismatch: now "10.4" but "10.5" during configure.
As a general philosophy, I'm a bit hesitant to go about changing stuff
that's part of the Python framework directory structure. I'd be
worried about ripple effects when debugging other builds in a couple
months when I forget that I've modified it.
As I noted the other day, from a clean SVN checkout on 10.5/py 2.6,
this one-liner works:
env PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig ARCHFLAGS='-arch i386'
CFLAGS="-Os -arch i386" LDFLAGS="-Os -arch i386 -L/usr/X11R6/lib"
python setup.py install
This avoids libgcc from gfortran in /usr/local/lib and doesn't require
building anything extra. I suppose it's not portable to 2.4 and/or
10.4, though.
I'm willing to try some more builds if it would help, though it
appears I just keep uncovering problems :(
-Eric
On Mon, Aug 24, 2009 at 5:06 PM, Ariel Rokem<ar...@be...> wrote:
> Hi Eric,
>
> you could try making changes to your Python Makefile, as described
> here (in item 1):
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#building-and-installing-from-source-on-osx-with-epd
>
> Even if you are not installing on the basis of the EPD, it might still
> solve your issue.
>
> Cheers,
>
> Ariel
>
>
>
> On Mon, Aug 24, 2009 at 1:47 PM, Eric Bruning<eri...@gm...> wrote:
>> For some reason, it's still picking up the gfortran-installed gcc in
>> /usr/local/lib, which is also listed in
>> /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib (along with everything
>> else in /usr/local/lib). I also still see -L /usr/local/lib even
>> though the darwin setupext.py key no longer includes it.
>>
>> I'm flummoxed. Apparently I should back up and try without gfortran
>> first, but that's a typical way to meet requirements for scipy that
>> I'd like to have around.
>>
>> -Eric
>>
>> g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
>> -bundle -undefined dynamic_lookup -arch i386 -arch ppc
>> -L/usr/local/matplotlib/lib
>> -syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
>> -I/usr/local/matplotlib/include
>> -I/usr/local/matplotlib/include/freetype2 -isysroot
>> /Developer/SDKs/MacOSX10.4u.sdk
>> build/temp.macosx-10.4-fat-2.6/src/ft2font.o
>> build/temp.macosx-10.4-fat-2.6/src/mplutils.o
>> build/temp.macosx-10.4-fat-2.6/CXX/cxx_extensions.o
>> build/temp.macosx-10.4-fat-2.6/CXX/cxxsupport.o
>> build/temp.macosx-10.4-fat-2.6/CXX/IndirectPythonInterface.o
>> build/temp.macosx-10.4-fat-2.6/CXX/cxxextensions.o -L/usr/local/lib
>> -lfreetype -lz -lstdc++ -lm -o
>> build/lib.macosx-10.4-fat-2.6/matplotlib/ft2font.so
>> ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib,
>> missing required architecture ppc in file
>> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib,
>> missing required architecture ppc in file for architecture ppc
>> collect2: ld returned 1 exit status
>> lipo: can't open input file:
>> /var/folders/RP/RPE-UjrSHZ4SQq6AJQBxqk+++TI/-Tmp-//ccAqigF2.out (No
>> such file or directory)
>> error: command 'g++' failed with exit status 1
>> make: *** [mpl_build] Error 1
>>
>>
>> On Sun, Aug 23, 2009 at 1:33 AM, John Hunter<jd...@gm...> wrote:
>>> The problem of building on OSX, in particular the setupext basedir
>>> search path including /sw, /usr and /usr/local, appears so fraught
>>> with peril -- we don't know what kinds of libs built with what kinds
>>> of flags that we will find -- that I removed all the dirs from the
>>> basedir for darwin. Instead, I am hoping that the new makefile.osx
>>> Makefile I have added, which will fetch and build the required libs
>>> and install them into the PREFIX of your choice, will prove more
>>> supportable.
>>>
>>> I have tested this on a couple of platforms and it worked well, but
>>> there are other combinations that I do not have access to so please
>>> let me know if this is not viable. I am currently building with
>>>
>>> PREFIX=/Users/jdhunter/dev make -f makefile.osx fetch deps mpl_install
>>>
>>> Builds with enthought python make still be broken due to the issues in the FAQ:
>>>
>>> http://matplotlib.sourceforge.net/faq/installing_faq.html#building-and-installing-from-source-on-osx-with-epd
>>>
>>> Please kick the tires and give some feedback
>>>
>>> JDH
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
>
>
> --
> Ariel Rokem
> Helen Wills Neuroscience Institute
> University of California, Berkeley
> http://argentum.ucbso.berkeley.edu/ariel
>
From: Darren D. <dsd...@gm...> - 2009年08月25日 22:54:09
On Tue, Aug 25, 2009 at 4:35 PM, Brian Granger<ell...@gm...> wrote:
> Hello all,
>
> While at SciPy this year, the IPython devs began discussing dropping Python
> 2.4 support. Or rational is this:
>
> * New generator features in 2.5 would dramatically simplify our testing of
> our Twisted using components.
>
> * Being able to use absolute imports would simplify the packaging of some
> external deps.
>
> * The faster we get rid of 2.4 and 2.5 support (we are not getting rid of
> 2.5 yet) the faster we can transition to py3k.
>
> But, this would mean that pylab mode for matplotlib would require either:
>
> * Using IPython v 0.10 or below
>
> * Using Python 2.5/2.6
>
> We know that there are people still using Python 2.4, but at this point, we
> feel the benefits outweight the costs. How do the matplotlib devs feel
> about this?
>
> As a side note, as of IPython 0.11, the IPython threaded shells (pylab
> stuff) will be completely refactored. This will require matplotlib to make
> some moderate changes to support the new interface. Thus, even if we don't
> drop 2.4 support, matplotlib will have to decide how to handle the IPython
> 0.10->0.11 transition.
My sense is that most people still using python-2.4 probably put a
premium on stability and wouldn't be interested in (or aware of) the
refactored codebase until it has seen some use and had a chance to
work out the bugs. I think it is reasonable to provide a ipy-0.10
based on the old codebase that is compatible with py-2.4 and make use
of the newer language features in the trunk.
Hopefully someone will come up with a 3to2 tool that will support
python-2.5. That might provide a faster route to ipython for python-3.
Darren
From: Jeff W. <js...@fa...> - 2009年08月25日 21:05:40
Michael Hearne wrote:
> I just built matplotlib and basemap from source on a RHEL system, with 
> EPD as my base Python installation.
>
> The build procedure for matplotlib was fairly straightforward, as was 
> basemap (once I read Jeff's documentation on installing).
>
> However, once I try to import basemap, I get an error about dbflib 
> (ipython session below):
> 
Mike: Try editing setup.cfg and changing
pyshapelib = True
It's set to 'auto' by default. I bet it's detecting an existing 
pyshapelib install, but then can find all the parts of it that it needs.
-Jeff
> In [1]: from mpl_toolkits.basemap import Basemap
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call 
> last)
>
> /home/shake/losspager/1.15/<ipython console> in <module>()
>
> /usr/local/epd/lib/python2.5/site-packages/mpl_toolkits/basemap/ 
> __init__.py in <module>()
> 36 from matplotlib.lines import Line2D
> 37 from matplotlib.transforms import Bbox
> ---> 38 import pyproj, sys, os, math, dbflib
> 39 from proj import Proj
> 40 import numpy as np
>
> ImportError: No module named dbflib
>
> Where is dbflib supposed to be?
>
> Thanks,
>
> Mike
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Michael H. <mh...@us...> - 2009年08月25日 20:38:50
I just built matplotlib and basemap from source on a RHEL system, with 
EPD as my base Python installation.
The build procedure for matplotlib was fairly straightforward, as was 
basemap (once I read Jeff's documentation on installing).
However, once I try to import basemap, I get an error about dbflib 
(ipython session below):
In [1]: from mpl_toolkits.basemap import Basemap
---------------------------------------------------------------------------
ImportError Traceback (most recent call 
last)
/home/shake/losspager/1.15/<ipython console> in <module>()
/usr/local/epd/lib/python2.5/site-packages/mpl_toolkits/basemap/ 
__init__.py in <module>()
 36 from matplotlib.lines import Line2D
 37 from matplotlib.transforms import Bbox
---> 38 import pyproj, sys, os, math, dbflib
 39 from proj import Proj
 40 import numpy as np
ImportError: No module named dbflib
Where is dbflib supposed to be?
Thanks,
Mike
From: Brian G. <ell...@gm...> - 2009年08月25日 20:35:23
Hello all,
While at SciPy this year, the IPython devs began discussing dropping Python
2.4 support. Or rational is this:
* New generator features in 2.5 would dramatically simplify our testing of
our Twisted using components.
* Being able to use absolute imports would simplify the packaging of some
external deps.
* The faster we get rid of 2.4 and 2.5 support (we are not getting rid of
2.5 yet) the faster we can transition to py3k.
But, this would mean that pylab mode for matplotlib would require either:
* Using IPython v 0.10 or below
* Using Python 2.5/2.6
We know that there are people still using Python 2.4, but at this point, we
feel the benefits outweight the costs. How do the matplotlib devs feel
about this?
As a side note, as of IPython 0.11, the IPython threaded shells (pylab
stuff) will be completely refactored. This will require matplotlib to make
some moderate changes to support the new interface. Thus, even if we don't
drop 2.4 support, matplotlib will have to decide how to handle the IPython
0.10->0.11 transition.
Cheers,
Brian
From: Gökhan S. <gok...@gm...> - 2009年08月25日 20:25:31
Hmm,
That might be nothing to do with Sphinx's being very recent. Since that
thread from sphinx-dev list is from Oct 2008 and the guy reporting the
similar issue seemingly using an even older Sphinx version (4.3)
I don't exactly know what would be the advantage of making docstrings numpy
standardized.
On Tue, Aug 25, 2009 at 3:01 PM, Michael Droettboom <md...@st...> wrote:
> The error is caused by recent versions of Sphinx being more picky about
> headers in docstrings. I had to update my version of Sphinx in order to
> reproduce your error.
>
> Your fix is adding support for Numpy's custom docstring format? I'm not
> sure we want to go down that road just yet. Easier to just remove the
> headers in the cohere_pairs docstring (since it's the only one!) and move
> on. I'll have a fix for this once my doc build is done.
>
> I'm not saying using the Numpy format wouldn't be a good idea. But it's a
> lot of manual labor to move to that format, make sure things are consistent
> etc. It's interesting that your fix doesn't produce new problems, though.
>
> Mike
>
> Gökhan Sever wrote:
>
>> OK,
>>
>> Here comes a self fix:
>>
>> http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/docscrape.py
>> http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/docscrape_sphinx.py
>> http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/numpydoc.py
>>
>> added the above files under /doc/sphinxext and updated conf.py.
>>
>> Then works.
>>
>> This said, I am not sure is this the natural way to fix this problem?
>>
>> Thanks.
>>
>> On Tue, Aug 25, 2009 at 1:10 PM, Gökhan Sever <gok...@gm...<mailto:
>> gok...@gm...>> wrote:
>>
>> Hello,
>>
>> The trunk is giving the following error while trying to build the
>> documentation via "python make.py all"
>>
>> reading sources... [ 4%]
>> api/mlab_api
>>
>> reST markup error:
>>
>> /home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/mlab.py:docstring
>> of matplotlib.mlab.cohere_pairs:6: (SEVERE/4) Unexpected section
>> title.
>>
>> A similar error reported at:
>>
>>
>> http://groups.google.com/group/sphinx-dev/browse_thread/thread/300153957f2902f9?pli=1
>>
>> however, couldn't figure to fix the issue.
>>
>> Any comments?
>>
>> -- Gökhan
>>
>>
>>
>>
>> --
>> Gökhan
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day trial. Simplify your report design, integration and deployment - and
>> focus on what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
-- 
Gökhan
From: Michael D. <md...@st...> - 2009年08月25日 20:01:50
The error is caused by recent versions of Sphinx being more picky about 
headers in docstrings. I had to update my version of Sphinx in order to 
reproduce your error.
Your fix is adding support for Numpy's custom docstring format? I'm not 
sure we want to go down that road just yet. Easier to just remove the 
headers in the cohere_pairs docstring (since it's the only one!) and 
move on. I'll have a fix for this once my doc build is done.
I'm not saying using the Numpy format wouldn't be a good idea. But it's 
a lot of manual labor to move to that format, make sure things are 
consistent etc. It's interesting that your fix doesn't produce new 
problems, though.
Mike
Gökhan Sever wrote:
> OK,
>
> Here comes a self fix:
>
> http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/docscrape.py
> http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/docscrape_sphinx.py
> http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/numpydoc.py
>
> added the above files under /doc/sphinxext and updated conf.py.
>
> Then works.
>
> This said, I am not sure is this the natural way to fix this problem?
>
> Thanks.
>
> On Tue, Aug 25, 2009 at 1:10 PM, Gökhan Sever <gok...@gm... 
> <mailto:gok...@gm...>> wrote:
>
> Hello,
>
> The trunk is giving the following error while trying to build the
> documentation via "python make.py all"
>
> reading sources... [ 4%]
> api/mlab_api 
>
> reST markup error:
> /home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/mlab.py:docstring
> of matplotlib.mlab.cohere_pairs:6: (SEVERE/4) Unexpected section
> title.
>
> A similar error reported at:
>
> http://groups.google.com/group/sphinx-dev/browse_thread/thread/300153957f2902f9?pli=1
>
> however, couldn't figure to fix the issue.
>
> Any comments?
>
> -- 
> Gökhan
>
>
>
>
> -- 
> Gökhan
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Gökhan S. <gok...@gm...> - 2009年08月25日 19:51:38
OK,
Here comes a self fix:
http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/docscrape.py
http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/docscrape_sphinx.py
http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/numpydoc.py
added the above files under /doc/sphinxext and updated conf.py.
Then works.
This said, I am not sure is this the natural way to fix this problem?
Thanks.
On Tue, Aug 25, 2009 at 1:10 PM, Gökhan Sever <gok...@gm...> wrote:
> Hello,
>
> The trunk is giving the following error while trying to build the
> documentation via "python make.py all"
>
> reading sources... [ 4%]
> api/mlab_api
>
> reST markup error:
> /home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/mlab.py:docstring
> of matplotlib.mlab.cohere_pairs:6: (SEVERE/4) Unexpected section title.
>
> A similar error reported at:
>
>
> http://groups.google.com/group/sphinx-dev/browse_thread/thread/300153957f2902f9?pli=1
>
> however, couldn't figure to fix the issue.
>
> Any comments?
>
> --
> Gökhan
>
-- 
Gökhan
md...@us... wrote:
> Revision: 7567
> http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7567&view=rev
> Author: mdboom
> Date: 2009年08月25日 15:31:10 +0000 (2009年8月25日)
> 
> Log Message:
> -----------
> Support Line2D objects without associated Axes objects.
> 
> Modified Paths:
> --------------
> branches/v0_99_maint/lib/matplotlib/lines.py
> 
> Modified: branches/v0_99_maint/lib/matplotlib/lines.py
> ===================================================================
> --- branches/v0_99_maint/lib/matplotlib/lines.py	2009年08月25日 11:54:24 UTC (rev 7566)
> +++ branches/v0_99_maint/lib/matplotlib/lines.py	2009年08月25日 15:31:10 UTC (rev 7567)
> @@ -459,7 +459,7 @@
> self._y = self._xy[:, 1] # just a view
> 
> self._subslice = False
> - if len(x) > 100 and self._is_sorted(x):
> + if self.axes and len(x) > 100 and self._is_sorted(x):
> self._subslice = True
> if hasattr(self, '_path'):
> interpolation_steps = self._path._interpolation_steps
> @@ -496,7 +496,7 @@
> def draw(self, renderer):
> if self._invalid:
> self.recache()
> - if self._subslice:
> + if self._subslice and self.axes:
> # Need to handle monotonically decreasing case also...
> x0, x1 = self.axes.get_xbound()
> i0, = self._x.searchsorted([x0], 'left')
Mike,
I'm curious--why are both changes needed? Shouldn't the setting of 
self._subslice in the first chunk be enough? If not, it suggests that 
there are more general design problems here. Can a line object have an 
associated axes when it is created (or when data are fed to it) and then 
lose that axes attribute by the time draw() is called? If so, then it 
seems like the second chunk is the right one to keep, and the first one 
is useless.
Eric
From: Gökhan S. <gok...@gm...> - 2009年08月25日 18:10:59
Hello,
The trunk is giving the following error while trying to build the
documentation via "python make.py all"
reading sources... [ 4%]
api/mlab_api
reST markup error:
/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/mlab.py:docstring
of matplotlib.mlab.cohere_pairs:6: (SEVERE/4) Unexpected section title.
A similar error reported at:
http://groups.google.com/group/sphinx-dev/browse_thread/thread/300153957f2902f9?pli=1
however, couldn't figure to fix the issue.
Any comments?
-- 
Gökhan
From: Michael D. <md...@st...> - 2009年08月25日 15:30:52
Ah -- for some reason the benefit is immeasurable until about 1M 
points. I was using fewer points because you can't even get a baseline 
measurement with that many -- it exceeds the path length limit in Agg.
I see now why it's superior to the clipping I wrote -- it does a binary 
search to find the end points. Makes sense. We'll have to keep both 
approaches, since the clipping is also required to prevent rendering 
errors due to fixed-point number overflow in the Agg backend.
So, I'll just patch it up so subslicing is disabled when there is no 
associated axes (the root of my original problem) and leave it at that.
Cheers,
Mike
Eric Firing wrote:
> Michael Droettboom wrote:
>> According to svn blame, which only gives the most recent version a 
>> line was edited, not the first time a line appeared, obviously -- 
>> subslice support was added in r7100, and clipping was fixed in 
>> r6847. So, apparently at the time subslice was added the clipping 
>> was already there. So, if you were seeing a time improvement then, 
>> your data must be doing something my benchmark here doesn't.
>
> Mike,
>
> Try something like this:
>
> x = arange(1000000.0)
> y = sin(x/100)
> plot(x, y)
> xlim(0, 1000)
>
> Now select pan/zoom, hold down X, and pan. Notice the degree of speed 
> and smoothness (or not). Next, disable subslicing like this:
>
> clf()
> x[1] = -0.1 # no longer monotonic
> plot(x, y)
> xlim(0, 1000)
>
> And try panning again. At least on my machine, there is a big 
> difference.
>
> Eric
>
>
>
>>
>> The clipping support is probably more general than subslicing, since 
>> it doesn't require the data to be monotonic -- it clips as the line 
>> crosses any of the boundaries of the figure. Given that, I'm 
>> surprised it competes so favorably timewise -- I suspect the 
>> important thing is to just reduce the number of points passed to the 
>> renderer -- the actually speed at which those points are located is 
>> nothing compared to stroking points.
>>
>> Cheers,
>> Mike
>>
>> Eric Firing wrote:
>>> Michael Droettboom wrote:
>>>> We recently saw some breakage with our PyRAF plotting tool (which 
>>>> uses matplotlib as a "dumb" rendering backend) and matplotlib 
>>>> 0.99. It stops inside the subslice support that was added to 
>>>> Line2D, since subslicing requires that the Line2D object have an 
>>>> "axes" assigned to it. Since PyRAF doesn't use matplotlib's Axes 
>>>> objects, its lines don't have them.
>>>>
>>>> It's a simple fix to check for the existence of an axes member and 
>>>> skip the subslice support if it doesn't have one. However, I 
>>>> wonder if it couldn't just be removed, especially since it is the 
>>>> only dependency on an Axes from Line2D objects. I think it may 
>>>> have become redundant wrt the path simplification code which now 
>>>> handles clipping (at the figure boundary, not the axis boundary 
>>>> mind you) rather reliably. The simplification code now also works 
>>>> in all backends, which is fairly new.
>>>
>>> Mike,
>>>
>>> Was the simplification you are talking about added after I added the 
>>> subslice support (by which I assume you mean the slicing in the case 
>>> of monotonic x)? And is it as general? At least at the time I put 
>>> in the subslicing of sorted abcissas, I am pretty sure it made a big 
>>> difference when panning long timeseries--that is why I put it in. 
>>> Certainly I would be happy to see it go if it is not actually doing 
>>> anything useful now, but I would like to be sure. I can't look at 
>>> it right now.
>>>
>>> Eric
>>>
>>>>
>>>> I did a little benchmarking with the attached script. It generates 
>>>> a 10,000 point random array and then plots a 500 point subset in 
>>>> the middle.
>>>>
>>>> baseline: 3.94 fps (no clipping or subslicing)
>>>> subslice: 28.14 fps
>>>> clipping: 28.09 fps
>>>> clipping+subslice: 28.35 fps (i.e. current code)
>>>>
>>>> The last three are close enough to be considered equal.
>>>>
>>>> Of course, another benchmark may produce very different results, so 
>>>> I'm reluctant to just yank it. But it would be nice to remove 
>>>> nearly-identical optimizations.
>>>>
>>>> Cheers,
>>>> Mike
>>>>
>>>>
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> ------------------------------------------------------------------------------ 
>>>>
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 
>>>> 2008 30-Day trial. Simplify your report design, integration and 
>>>> deployment - and focus on what you do best, core application 
>>>> coding. Discover what's new with Crystal Reports now. 
>>>> http://p.sf.net/sfu/bobj-july
>>>>
>>>>
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> _______________________________________________
>>>> Matplotlib-devel mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Eric F. <ef...@ha...> - 2009年08月25日 01:04:44
Michael Droettboom wrote:
> According to svn blame, which only gives the most recent version a line 
> was edited, not the first time a line appeared, obviously -- subslice 
> support was added in r7100, and clipping was fixed in r6847. So, 
> apparently at the time subslice was added the clipping was already 
> there. So, if you were seeing a time improvement then, your data must 
> be doing something my benchmark here doesn't.
Mike,
Try something like this:
x = arange(1000000.0)
y = sin(x/100)
plot(x, y)
xlim(0, 1000)
Now select pan/zoom, hold down X, and pan. Notice the degree of speed 
and smoothness (or not). Next, disable subslicing like this:
clf()
x[1] = -0.1 # no longer monotonic
plot(x, y)
xlim(0, 1000)
And try panning again. At least on my machine, there is a big difference.
Eric
> 
> The clipping support is probably more general than subslicing, since it 
> doesn't require the data to be monotonic -- it clips as the line crosses 
> any of the boundaries of the figure. Given that, I'm surprised it 
> competes so favorably timewise -- I suspect the important thing is to 
> just reduce the number of points passed to the renderer -- the actually 
> speed at which those points are located is nothing compared to stroking 
> points.
> 
> Cheers,
> Mike
> 
> Eric Firing wrote:
>> Michael Droettboom wrote:
>>> We recently saw some breakage with our PyRAF plotting tool (which 
>>> uses matplotlib as a "dumb" rendering backend) and matplotlib 0.99. 
>>> It stops inside the subslice support that was added to Line2D, since 
>>> subslicing requires that the Line2D object have an "axes" assigned to 
>>> it. Since PyRAF doesn't use matplotlib's Axes objects, its lines 
>>> don't have them.
>>>
>>> It's a simple fix to check for the existence of an axes member and 
>>> skip the subslice support if it doesn't have one. However, I wonder 
>>> if it couldn't just be removed, especially since it is the only 
>>> dependency on an Axes from Line2D objects. I think it may have 
>>> become redundant wrt the path simplification code which now handles 
>>> clipping (at the figure boundary, not the axis boundary mind you) 
>>> rather reliably. The simplification code now also works in all 
>>> backends, which is fairly new.
>>
>> Mike,
>>
>> Was the simplification you are talking about added after I added the 
>> subslice support (by which I assume you mean the slicing in the case 
>> of monotonic x)? And is it as general? At least at the time I put in 
>> the subslicing of sorted abcissas, I am pretty sure it made a big 
>> difference when panning long timeseries--that is why I put it in. 
>> Certainly I would be happy to see it go if it is not actually doing 
>> anything useful now, but I would like to be sure. I can't look at it 
>> right now.
>>
>> Eric
>>
>>>
>>> I did a little benchmarking with the attached script. It generates a 
>>> 10,000 point random array and then plots a 500 point subset in the 
>>> middle.
>>>
>>> baseline: 3.94 fps (no clipping or subslicing)
>>> subslice: 28.14 fps
>>> clipping: 28.09 fps
>>> clipping+subslice: 28.35 fps (i.e. current code)
>>>
>>> The last three are close enough to be considered equal.
>>>
>>> Of course, another benchmark may produce very different results, so 
>>> I'm reluctant to just yank it. But it would be nice to remove 
>>> nearly-identical optimizations.
>>>
>>> Cheers,
>>> Mike
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> ------------------------------------------------------------------------------ 
>>>
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
>>> 30-Day trial. Simplify your report design, integration and deployment 
>>> - and focus on what you do best, core application coding. Discover 
>>> what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
> 
From: Tony Yu <ts...@gm...> - 2009年08月24日 21:31:36
I noticed that semilogx and semilogy don't check if the linear axis (y- 
axis for semilogx; x-axis for semilogy) is actually linear. Thus, if I 
call semilogx and then call semilogy *on the same plot*, I end up with 
a loglog plot.
Below is a simple patch. I'm not sure how useful this fix is since 
most people wouldn't want to make these calls on the same plot (since 
the second call would override the first)---I was working 
interactively in IPython so it did make a difference.
Cheers,
-Tony
Index: lib/matplotlib/axes.py
===================================================================
--- lib/matplotlib/axes.py	(revision 7557)
+++ lib/matplotlib/axes.py	(working copy)
@@ -3615,6 +3615,7 @@
 }
 self.set_xscale('log', **d)
+ self.set_yscale('linear')
 b = self._hold
 self._hold = True # we've already processed the hold
 l = self.plot(*args, **kwargs)
@@ -3665,6 +3666,7 @@
 'nonposy': kwargs.pop('nonposy', 'mask'),
 }
 self.set_yscale('log', **d)
+ self.set_xscale('linear')
 b = self._hold
 self._hold = True # we've already processed the hold
 l = self.plot(*args, **kwargs)
From: Ariel R. <ar...@be...> - 2009年08月24日 21:07:27
Hi Eric,
you could try making changes to your Python Makefile, as described
here (in item 1):
http://matplotlib.sourceforge.net/faq/installing_faq.html#building-and-installing-from-source-on-osx-with-epd
Even if you are not installing on the basis of the EPD, it might still
solve your issue.
Cheers,
Ariel
On Mon, Aug 24, 2009 at 1:47 PM, Eric Bruning<eri...@gm...> wrote:
> For some reason, it's still picking up the gfortran-installed gcc in
> /usr/local/lib, which is also listed in
> /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib (along with everything
> else in /usr/local/lib). I also still see -L /usr/local/lib even
> though the darwin setupext.py key no longer includes it.
>
> I'm flummoxed. Apparently I should back up and try without gfortran
> first, but that's a typical way to meet requirements for scipy that
> I'd like to have around.
>
> -Eric
>
> g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
> -bundle -undefined dynamic_lookup -arch i386 -arch ppc
> -L/usr/local/matplotlib/lib
> -syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
> -I/usr/local/matplotlib/include
> -I/usr/local/matplotlib/include/freetype2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk
> build/temp.macosx-10.4-fat-2.6/src/ft2font.o
> build/temp.macosx-10.4-fat-2.6/src/mplutils.o
> build/temp.macosx-10.4-fat-2.6/CXX/cxx_extensions.o
> build/temp.macosx-10.4-fat-2.6/CXX/cxxsupport.o
> build/temp.macosx-10.4-fat-2.6/CXX/IndirectPythonInterface.o
> build/temp.macosx-10.4-fat-2.6/CXX/cxxextensions.o -L/usr/local/lib
> -lfreetype -lz -lstdc++ -lm -o
> build/lib.macosx-10.4-fat-2.6/matplotlib/ft2font.so
> ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib,
> missing required architecture ppc in file
> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib,
> missing required architecture ppc in file for architecture ppc
> collect2: ld returned 1 exit status
> lipo: can't open input file:
> /var/folders/RP/RPE-UjrSHZ4SQq6AJQBxqk+++TI/-Tmp-//ccAqigF2.out (No
> such file or directory)
> error: command 'g++' failed with exit status 1
> make: *** [mpl_build] Error 1
>
>
> On Sun, Aug 23, 2009 at 1:33 AM, John Hunter<jd...@gm...> wrote:
>> The problem of building on OSX, in particular the setupext basedir
>> search path including /sw, /usr and /usr/local, appears so fraught
>> with peril -- we don't know what kinds of libs built with what kinds
>> of flags that we will find -- that I removed all the dirs from the
>> basedir for darwin. Instead, I am hoping that the new makefile.osx
>> Makefile I have added, which will fetch and build the required libs
>> and install them into the PREFIX of your choice, will prove more
>> supportable.
>>
>> I have tested this on a couple of platforms and it worked well, but
>> there are other combinations that I do not have access to so please
>> let me know if this is not viable. I am currently building with
>>
>> PREFIX=/Users/jdhunter/dev make -f makefile.osx fetch deps mpl_install
>>
>> Builds with enthought python make still be broken due to the issues in the FAQ:
>>
>> http://matplotlib.sourceforge.net/faq/installing_faq.html#building-and-installing-from-source-on-osx-with-epd
>>
>> Please kick the tires and give some feedback
>>
>> JDH
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
-- 
Ariel Rokem
Helen Wills Neuroscience Institute
University of California, Berkeley
http://argentum.ucbso.berkeley.edu/ariel
From: Eric B. <eri...@gm...> - 2009年08月24日 20:47:18
For some reason, it's still picking up the gfortran-installed gcc in
/usr/local/lib, which is also listed in
/Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib (along with everything
else in /usr/local/lib). I also still see -L /usr/local/lib even
though the darwin setupext.py key no longer includes it.
I'm flummoxed. Apparently I should back up and try without gfortran
first, but that's a typical way to meet requirements for scipy that
I'd like to have around.
-Eric
g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup -arch i386 -arch ppc
-L/usr/local/matplotlib/lib
-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
-I/usr/local/matplotlib/include
-I/usr/local/matplotlib/include/freetype2 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk
build/temp.macosx-10.4-fat-2.6/src/ft2font.o
build/temp.macosx-10.4-fat-2.6/src/mplutils.o
build/temp.macosx-10.4-fat-2.6/CXX/cxx_extensions.o
build/temp.macosx-10.4-fat-2.6/CXX/cxxsupport.o
build/temp.macosx-10.4-fat-2.6/CXX/IndirectPythonInterface.o
build/temp.macosx-10.4-fat-2.6/CXX/cxxextensions.o -L/usr/local/lib
-lfreetype -lz -lstdc++ -lm -o
build/lib.macosx-10.4-fat-2.6/matplotlib/ft2font.so
ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib,
missing required architecture ppc in file
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib,
missing required architecture ppc in file for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/RP/RPE-UjrSHZ4SQq6AJQBxqk+++TI/-Tmp-//ccAqigF2.out (No
such file or directory)
error: command 'g++' failed with exit status 1
make: *** [mpl_build] Error 1
On Sun, Aug 23, 2009 at 1:33 AM, John Hunter<jd...@gm...> wrote:
> The problem of building on OSX, in particular the setupext basedir
> search path including /sw, /usr and /usr/local, appears so fraught
> with peril -- we don't know what kinds of libs built with what kinds
> of flags that we will find -- that I removed all the dirs from the
> basedir for darwin. Instead, I am hoping that the new makefile.osx
> Makefile I have added, which will fetch and build the required libs
> and install them into the PREFIX of your choice, will prove more
> supportable.
>
> I have tested this on a couple of platforms and it worked well, but
> there are other combinations that I do not have access to so please
> let me know if this is not viable. I am currently building with
>
> PREFIX=/Users/jdhunter/dev make -f makefile.osx fetch deps mpl_install
>
> Builds with enthought python make still be broken due to the issues in the FAQ:
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#building-and-installing-from-source-on-osx-with-epd
>
> Please kick the tires and give some feedback
>
> JDH
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
From: Michael D. <md...@st...> - 2009年08月24日 19:03:48
According to svn blame, which only gives the most recent version a line 
was edited, not the first time a line appeared, obviously -- subslice 
support was added in r7100, and clipping was fixed in r6847. So, 
apparently at the time subslice was added the clipping was already 
there. So, if you were seeing a time improvement then, your data must 
be doing something my benchmark here doesn't.
The clipping support is probably more general than subslicing, since it 
doesn't require the data to be monotonic -- it clips as the line crosses 
any of the boundaries of the figure. Given that, I'm surprised it 
competes so favorably timewise -- I suspect the important thing is to 
just reduce the number of points passed to the renderer -- the actually 
speed at which those points are located is nothing compared to stroking 
points.
Cheers,
Mike
Eric Firing wrote:
> Michael Droettboom wrote:
>> We recently saw some breakage with our PyRAF plotting tool (which 
>> uses matplotlib as a "dumb" rendering backend) and matplotlib 0.99. 
>> It stops inside the subslice support that was added to Line2D, since 
>> subslicing requires that the Line2D object have an "axes" assigned to 
>> it. Since PyRAF doesn't use matplotlib's Axes objects, its lines 
>> don't have them.
>>
>> It's a simple fix to check for the existence of an axes member and 
>> skip the subslice support if it doesn't have one. However, I wonder 
>> if it couldn't just be removed, especially since it is the only 
>> dependency on an Axes from Line2D objects. I think it may have 
>> become redundant wrt the path simplification code which now handles 
>> clipping (at the figure boundary, not the axis boundary mind you) 
>> rather reliably. The simplification code now also works in all 
>> backends, which is fairly new.
>
> Mike,
>
> Was the simplification you are talking about added after I added the 
> subslice support (by which I assume you mean the slicing in the case 
> of monotonic x)? And is it as general? At least at the time I put in 
> the subslicing of sorted abcissas, I am pretty sure it made a big 
> difference when panning long timeseries--that is why I put it in. 
> Certainly I would be happy to see it go if it is not actually doing 
> anything useful now, but I would like to be sure. I can't look at it 
> right now.
>
> Eric
>
>>
>> I did a little benchmarking with the attached script. It generates a 
>> 10,000 point random array and then plots a 500 point subset in the 
>> middle.
>>
>> baseline: 3.94 fps (no clipping or subslicing)
>> subslice: 28.14 fps
>> clipping: 28.09 fps
>> clipping+subslice: 28.35 fps (i.e. current code)
>>
>> The last three are close enough to be considered equal.
>>
>> Of course, another benchmark may produce very different results, so 
>> I'm reluctant to just yank it. But it would be nice to remove 
>> nearly-identical optimizations.
>>
>> Cheers,
>> Mike
>>
>>
>> ------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------ 
>>
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
>> 30-Day trial. Simplify your report design, integration and deployment 
>> - and focus on what you do best, core application coding. Discover 
>> what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Eric F. <ef...@ha...> - 2009年08月24日 18:54:50
Michael Droettboom wrote:
> We recently saw some breakage with our PyRAF plotting tool (which uses 
> matplotlib as a "dumb" rendering backend) and matplotlib 0.99. It stops 
> inside the subslice support that was added to Line2D, since subslicing 
> requires that the Line2D object have an "axes" assigned to it. Since 
> PyRAF doesn't use matplotlib's Axes objects, its lines don't have them.
> 
> It's a simple fix to check for the existence of an axes member and skip 
> the subslice support if it doesn't have one. However, I wonder if it 
> couldn't just be removed, especially since it is the only dependency on 
> an Axes from Line2D objects. I think it may have become redundant wrt 
> the path simplification code which now handles clipping (at the figure 
> boundary, not the axis boundary mind you) rather reliably. The 
> simplification code now also works in all backends, which is fairly new.
Mike,
Was the simplification you are talking about added after I added the 
subslice support (by which I assume you mean the slicing in the case of 
monotonic x)? And is it as general? At least at the time I put in the 
subslicing of sorted abcissas, I am pretty sure it made a big difference 
when panning long timeseries--that is why I put it in. Certainly I 
would be happy to see it go if it is not actually doing anything useful 
now, but I would like to be sure. I can't look at it right now.
Eric
> 
> I did a little benchmarking with the attached script. It generates a 
> 10,000 point random array and then plots a 500 point subset in the middle.
> 
> baseline: 3.94 fps (no clipping or subslicing)
> subslice: 28.14 fps
> clipping: 28.09 fps
> clipping+subslice: 28.35 fps (i.e. current code)
> 
> The last three are close enough to be considered equal.
> 
> Of course, another benchmark may produce very different results, so I'm 
> reluctant to just yank it. But it would be nice to remove 
> nearly-identical optimizations.
> 
> Cheers,
> Mike
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Michael D. <md...@st...> - 2009年08月24日 18:27:35
Attachments: clipping_benchmark.py
We recently saw some breakage with our PyRAF plotting tool (which uses 
matplotlib as a "dumb" rendering backend) and matplotlib 0.99. It stops 
inside the subslice support that was added to Line2D, since subslicing 
requires that the Line2D object have an "axes" assigned to it. Since 
PyRAF doesn't use matplotlib's Axes objects, its lines don't have them.
It's a simple fix to check for the existence of an axes member and skip 
the subslice support if it doesn't have one. However, I wonder if it 
couldn't just be removed, especially since it is the only dependency on 
an Axes from Line2D objects. I think it may have become redundant wrt 
the path simplification code which now handles clipping (at the figure 
boundary, not the axis boundary mind you) rather reliably. The 
simplification code now also works in all backends, which is fairly new.
I did a little benchmarking with the attached script. It generates a 
10,000 point random array and then plots a 500 point subset in the middle.
baseline: 3.94 fps (no clipping or subslicing)
subslice: 28.14 fps
clipping: 28.09 fps
clipping+subslice: 28.35 fps (i.e. current code)
The last three are close enough to be considered equal.
Of course, another benchmark may produce very different results, so I'm 
reluctant to just yank it. But it would be nice to remove 
nearly-identical optimizations.
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
2 messages has been excluded from this view by a project administrator.

Showing results of 290

<< < 1 2 3 4 5 .. 12 > >> (Page 3 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 によって変換されたページ (->オリジナル) /