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

Showing 6 results of 6

From: Glen W. M. <Gle...@sw...> - 2007年11月13日 22:19:12
Attachments: axes.py.diff mlab.py.diff
Hello,
This is fairly minor, but I'd wonder if you'd consider including it.
It adds an optional Fc parameter to the specgram method of the Axes
class, and makes the calculation of the extent a bit more efficient.
Also, a quick fix for mlab.py.
Thank you,
Glen Mabey
From: Darren D. <dar...@co...> - 2007年11月13日 18:20:09
On Tuesday 13 November 2007 09:30:52 am John Hunter wrote:
> On Nov 13, 2007 8:01 AM, Darren Dale <dar...@co...> wrote:
> > On Monday 12 November 2007 06:39:28 pm Darren Dale wrote:
> > > On Monday 12 November 2007 05:52:55 pm John Hunter wrote:
> > > > On Nov 12, 2007 4:09 PM, Darren Dale <dar...@co...> wrote:
> > > > > I have been updating the logic in our setup.py and setupext.py
> > > > > files, so all of the build options are now exposed in setup.cfg.
> > > > > This should make it easier for anyone wishing to distribute
> > > > > matplotlib, like package managers. See setup.cfg.template for the
> > > > > details.
> > > >
> > > > I just did a clean build and it went through -- a good start! I
> > > > tried enabling the new config with by setting NEWCONFIG = True in
> > > > __init__.py, and also enabled in setup.cfg
> >
> > I altered mplconfig to create a matplotlib.conf.template file, which gets
> > read and modified at build time like we do with matplotlibrc.template.
> > It's not as elegant as using the config package machinery to create the
> > default config file at build time, but I think this will serve our needs.
> > Devs still need to execute mplconfig.py when we make changes that would
> > affect the default config file.
> >
> > I also updated the selection of the default backend at build time:
> >
> > SVG -> Agg -> TkAgg -> WXAgg -> GTK -> GTKAagg -> selection in setup.cfg
>
> I'm not sure we need GTK in that pipeline, since its future status is
> in question and I think we'd rather have someone on tkagg or wxagg
> than plain vanilla gtk.
Done.
> I think in the autogen of matplotlib.conf, there are a few things you
> could do to make the file much more readable.
>
> * for the enumeration of options, print
>
> # 'bilinear' or 'nearest' or 'bicubic' or 'spline16' or 'spline36' or
> 'hanni # ng' or 'hamming' or 'hermite' or 'kaiser' or 'quadric' or 'catrom'
> or 'gau # ssian' or 'bessel' or 'mitchell' or 'sinc' or 'lanczos' or
> 'blackman'
>
> like
>
> # bilinear | nearest | bicubic | spline16 ....
That is a good suggestion. However, most of the formatting is done under the 
hood, by the Traits package itself. It looks like the logic is spread out 
over traits code so it won't be easy to subclass and override the default 
behavior.
However, when we define our own trait handlers, like we do with BackendHandler 
and BoolHandler, we define an "info" method which controls the formatting. If 
we end up committing to using Traits, and we started adding more complex 
validation and notification, etc., I think that would be the time to add 
additional TraitHandlers to improve the formatting.
> * For floating point numbers, use a str converter rather than a repr
> converter, eg '%s'
>
> In [4]: '%s'%0.1
> Out[4]: '0.1'
>
> In [5]: '%r'%0.1
> Out[5]: '0.10000000000000001'
This is also dictated by Traits.
I'll have to think some more about formatting. Right now, its not obvious to 
me that there is a simple solution, aside from defining TraitHandlers.
> * I think your wrap algorithm is breaking in the middle of words. You
> might look at cbook.wrap
>
> In [15]: s = 'A regular expression used to determine the amount of
> space to remove. It looks for the first sequence of spaces
> immediately following the first newline, or at the beginning of the
> string.'
>
> In [16]: print cbook.wrap('', s, 76)
> A regular expression used to determine the amount of space to remove. 
> It looks for the first sequence of spaces immediately following the first
> newline, or at the beginning of the string.
Thank you for noticing this, and for pointing out the solution in cbook. I 
updated tconfig in our repository and in ipython1.
Darren
From: John H. <jd...@gm...> - 2007年11月13日 14:30:53
On Nov 13, 2007 8:01 AM, Darren Dale <dar...@co...> wrote:
> On Monday 12 November 2007 06:39:28 pm Darren Dale wrote:
> > On Monday 12 November 2007 05:52:55 pm John Hunter wrote:
> > > On Nov 12, 2007 4:09 PM, Darren Dale <dar...@co...> wrote:
> > > > I have been updating the logic in our setup.py and setupext.py files,
> > > > so all of the build options are now exposed in setup.cfg. This should
> > > > make it easier for anyone wishing to distribute matplotlib, like
> > > > package managers. See setup.cfg.template for the details.
> > >
> > > I just did a clean build and it went through -- a good start! I tried
> > > enabling the new config with by setting NEWCONFIG = True in
> > > __init__.py, and also enabled in setup.cfg
>
> I altered mplconfig to create a matplotlib.conf.template file, which gets read
> and modified at build time like we do with matplotlibrc.template. It's not as
> elegant as using the config package machinery to create the default config
> file at build time, but I think this will serve our needs. Devs still need to
> execute mplconfig.py when we make changes that would affect the default
> config file.
>
> I also updated the selection of the default backend at build time:
>
> SVG -> Agg -> TkAgg -> WXAgg -> GTK -> GTKAagg -> selection in setup.cfg
I'm not sure we need GTK in that pipeline, since its future status is
in question and I think we'd rather have someone on tkagg or wxagg
than plain vanilla gtk.
I think in the autogen of matplotlib.conf, there are a few things you
could do to make the file much more readable.
* for the enumeration of options, print
 # 'bilinear' or 'nearest' or 'bicubic' or 'spline16' or 'spline36' or 'hanni
 # ng' or 'hamming' or 'hermite' or 'kaiser' or 'quadric' or 'catrom' or 'gau
 # ssian' or 'bessel' or 'mitchell' or 'sinc' or 'lanczos' or 'blackman'
 like
 # bilinear | nearest | bicubic | spline16 ....
* For floating point numbers, use a str converter rather than a repr
converter, eg '%s'
 In [4]: '%s'%0.1
 Out[4]: '0.1'
 In [5]: '%r'%0.1
 Out[5]: '0.10000000000000001'
* I think your wrap algorithm is breaking in the middle of words. You
might look at cbook.wrap
 In [15]: s = 'A regular expression used to determine the amount of
space to remove. It looks for the first sequence of spaces
immediately following the first newline, or at the beginning of the
string.'
 In [16]: print cbook.wrap('', s, 76)
 A regular expression used to determine the amount of space to remove. It
 looks for the first sequence of spaces immediately following the first
 newline, or at the beginning of the string.
JDH
From: Darren D. <dar...@co...> - 2007年11月13日 14:01:52
On Monday 12 November 2007 06:39:28 pm Darren Dale wrote:
> On Monday 12 November 2007 05:52:55 pm John Hunter wrote:
> > On Nov 12, 2007 4:09 PM, Darren Dale <dar...@co...> wrote:
> > > I have been updating the logic in our setup.py and setupext.py files,
> > > so all of the build options are now exposed in setup.cfg. This should
> > > make it easier for anyone wishing to distribute matplotlib, like
> > > package managers. See setup.cfg.template for the details.
> >
> > I just did a clean build and it went through -- a good start! I tried
> > enabling the new config with by setting NEWCONFIG = True in
> > __init__.py, and also enabled in setup.cfg
I altered mplconfig to create a matplotlib.conf.template file, which gets read 
and modified at build time like we do with matplotlibrc.template. It's not as 
elegant as using the config package machinery to create the default config 
file at build time, but I think this will serve our needs. Devs still need to 
execute mplconfig.py when we make changes that would affect the default 
config file.
I also updated the selection of the default backend at build time:
SVG -> Agg -> TkAgg -> WXAgg -> GTK -> GTKAagg -> selection in setup.cfg
committed in svn-4242.
Darren
From: John H. <jd...@gm...> - 2007年11月13日 03:41:05
On Nov 4, 2007 1:06 PM, Boyd Waters <bw...@nr...> wrote:
> I believe that "generic" autoconf would pick up CFLAGS:
>
> CFLAGS="-arch ppc -arch i386"
Worked for zlib and freetype, but failed for libpng with:
 gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -arch ppc
-arch i386 -MT libpng12_la-png.lo -MD -MP -MF
.deps/libpng12_la-png.Tpo -c png.c -fno-common -DPIC -o
.libs/libpng12_la-png.o
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with
multiple -arch flags
But, following your suggestion, I built everything with :
 536 export ARCHFLAGS="-arch i386"
 537 export MACOSX_DEPLOYMENT_TARGET=10.5
 538 export CFLAGS="-arch i386"
 543 export LDFLAGS="-arch i386"
 546 export CXXFLAGS="-arch i386"
but am still getting a failure. command history and build output
below. It appears the failure is happening at link time when the
build tries to link. The code at
http://mail.python.org/pipermail/python-checkins/2006-June/054322.html
suggests that both platforms are being unconditionally added in the
ARCHLIST but I am not sure if that is relevant here. In any case, if
I could fix the libpng problem above, I wouldn't have to worry about
it.
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 0.90.1
 python: 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1
 (Apple Computer, Inc. build 5341)]
 platform: darwin
REQUIRED DEPENDENCIES
 numpy: 1.0.4.dev4380
 freetype2: found, but unknown version (no pkg-config)
OPTIONAL BACKEND DEPENDENCIES
 Gtk+: no
 * Building for Gtk+ requires pygtk; you must be able
 * to "import gtk" in your build/install environment
 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
 wxPython: 2.8.3.0
 * WxAgg extension not required for wxPython >= 2.8
 Qt: no
 Qt4: no
 Cairo: no
 libpng: found, but unknown version (no pkg-config)
OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: matplotlib will provide
 pytz: matplotlib will provide
OPTIONAL USETEX DEPENDENCIES
 dvipng: no
 ghostscript: /bin/sh: gs: command not found
 latex: no
EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
 configobj: matplotlib will provide
 enthought.traits: matplotlib will provide
[Edit setup.cfg to suppress the above messages]
============================================================================
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.macosx-10.5-i386-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._tkagg' extension
C compiler: gcc -DNDEBUG -g -O3 -arch i386
compile options: '-I/System/Library/Frameworks/Tcl.framework/Headers
-I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/System/Library/Frameworks/Tk.framework/Headers
-I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23/include
-I. -I/usr/local/include -I/usr/include -I.
-I/System/Library/Frameworks/Tcl.framework/Headers/freetype2
-I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freetype2
-I/System/Library/Frameworks/Tk.framework/Headers/freetype2
-I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2
-I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2
-I./freetype2 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c'
extra options: '-framework Tcl -framework Tk'
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup -arch i386 -arch i386
build/temp.macosx-10.5-i386-2.5/src/_tkagg.o
build/temp.macosx-10.5-i386-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.5-i386-2.5/CXX/cxxsupport.o
build/temp.macosx-10.5-i386-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.5-i386-2.5/CXX/cxxextensions.o -L/usr/local/lib
-L/usr/lib -L/usr/local/lib -L/usr/lib -lpng -lz -lstdc++ -lm
-lfreetype -lz -lstdc++ -lm -o
build/lib.macosx-10.5-i386-2.5/matplotlib/backends/_tkagg.so
-framework Tcl -framework Tk
ld: warning in build/temp.macosx-10.5-i386-2.5/src/_tkagg.o, file is
not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/cxx_extensions.o,
file is not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/cxxsupport.o, file
is not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/IndirectPythonInterface.o,
file is not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/cxxextensions.o,
file is not of required architecture
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libpng.dylib,
file is not of required architecture
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libfreetype.dylib,
file is not of required architecture
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib,
file is not of required architecture for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/qT/qTRms9cJHNqoYnbs9+TwVk+++TI/-Tmp-//ccnIc3Eg.out (No
such file or directory)
ld: warning in build/temp.macosx-10.5-i386-2.5/src/_tkagg.o, file is
not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/cxx_extensions.o,
file is not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/cxxsupport.o, file
is not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/IndirectPythonInterface.o,
file is not of required architecture
ld: warning in build/temp.macosx-10.5-i386-2.5/CXX/cxxextensions.o,
file is not of required architecture
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libpng.dylib,
file is not of required architecture
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libfreetype.dylib,
file is not of required architecture
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib,
file is not of required architecture for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/qT/qTRms9cJHNqoYnbs9+TwVk+++TI/-Tmp-//ccnIc3Eg.out (No
such file or directory)
error: Command "g++ -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup
-arch i386 -arch i386 build/temp.macosx-10.5-i386-2.5/src/_tkagg.o
build/temp.macosx-10.5-i386-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.5-i386-2.5/CXX/cxxsupport.o
build/temp.macosx-10.5-i386-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.5-i386-2.5/CXX/cxxextensions.o -L/usr/local/lib
-L/usr/lib -L/usr/local/lib -L/usr/lib -lpng -lz -lstdc++ -lm
-lfreetype -lz -lstdc++ -lm -o
build/lib.macosx-10.5-i386-2.5/matplotlib/backends/_tkagg.so
-framework Tcl -framework Tk" failed with exit status 1
From: Jarrod M. <mi...@be...> - 2007年11月13日 02:36:07
On Nov 12, 2007 1:19 PM, John Hunter <jd...@gm...> wrote:
> On Nov 12, 2007 12:15 PM, Eric Firing <ef...@ha...> wrote:
> > On a more strategic note: what do you see as the future of mlab, and its
> > place in pylab? Should mlab contain every neat function we can think
> > of, and if so, should all of these be exposed in the pylab namespace?
> > Do we have or need any quality-control standards for these functions?
> > Is there a point in exposing more of mlab now than we have in the past?
> > Probably so, but we might want to be conservative about it.
>
> One could argue that everything there belongs somewhere else: the load
> and save and record array loaders and saves belong in scipy.io, the
> numerical codes belong in scipy or numpy or some sandbox, some of the
> stuff could just be scrapped as a relic of the past. I don't have a
> bone to pick with that argument, but I do have a practical concern: I
> am not a numpy/scipy committer and don't really have the time to
> become one and it is easier for me to put them into mpl (where I
> understand the code organization, build process, commit protocol,
> tests, etc much better) than to go through a numpy or scipy patch
> development and submission process.
>
> I am more than happy for any of this code to end up there and be
> pulled from mpl. In the past, I've offered this to Travis and he has
> taken me up on it for some functions, and the same goes for any other
> user or developer who has strong feelings on how these codes should be
> organized. Having taught several courses of "scientific computing for
> python" I am certainly aware of and sympathetic to the complaint that
> it is difficult to know where to find stuff in the support packages
> for scientific computing. I am all in favor of getting as much useful
> stuff into numpy and scipy and organized and documented -- it's just
> not likely to be me who is the one doing it, just from a time
> standpoint. So I currently tend to use cbook and mlab as a place for
> code I develop that is generally useful and is not available in numpy
> or scipy.
Hey John,
I am willing to commit to helping migrating the relevant mlab code
over to SciPy (or NumPy). The next release of SciPy
(http://projects.scipy.org/scipy/scipy/milestone/0.7) may be pushed
back a little, but it should be out by February at the latest. One of
the things I had been planning to work on for this release was going
over the various scipy.io code anyway.
I probably won't get a chance to take a close look at things until
December, but I thought I would mention it in case it has any impact
on your own plans.
Thanks,
-- 
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/

Showing 6 results of 6

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