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

Showing 5 results of 5

From: Ryan M. <rm...@gm...> - 2010年04月16日 19:10:14
I went ahead an implemented the close events. These work for me on the
following backends that I was able to test: TkAgg, Wx/WxAgg, Qt4Agg,
Gtk/GtkAgg.
I can't test Cocoa or PyQt3, so I didn't implement. All that is needed
is to add a call (preferably on a FigureCanvasBase subclass) that
calls the FigureCanvasBase.close_event().
Ryan
On Thu, Apr 15, 2010 at 5:18 PM, Ryan May <rm...@gm...> wrote:
> Hi,
>
> Does anyone know if there's a matplotlib event that fires when a
> figure window is closed? I can't seem to find one.
>
> If there's not one, any I shouldn't add one? I need to stop my
> animation timers when the figure is closed.
>
> Ryan
>
> --
> Ryan May
> Graduate Research Assistant
> School of Meteorology
> University of Oklahoma
>
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Michael H. <mh...@us...> - 2010年04月16日 18:39:02
Update:
I just tried "make -f make.osx fetch deps mpl_install", which gave me the following results:
python2.6 -c 'import urllib; urllib.urlretrieve("http://www.zlib.net/zlib-1.2.3.tar.gz", "zlib-1.2.3.tar.gz")' &&\
	python2.6 -c 'import urllib; urllib.urlretrieve("http://downloads.sourceforge.net/project/libpng/libpng-stable/1.2.39/libpng-1.2.39.tar.gz", "libpng-1.2.39.tar.gz")' &&\
	python2.6 -c 'import urllib; urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2", "freetype-2.3.11.tar.bz2")'
export PKG_CONFIG_PATH="/Users/mhearne/build make -f make.osx fetch deps mpl_install/lib/pkgconfig" &&\
	rm -rf zlib-1.2.3 &&\
	tar xvfj zlib-1.2.3.tar.gz &&\
	cd zlib-1.2.3 &&\
	export MACOSX_DEPLOYMENT_TARGET=10.6 &&\
	export CFLAGS="-arch i386 -arch x86_64 -I/Users/mhearne/build make -f make.osx fetch deps mpl_install/include -I/Users/mhearne/build make -f make.osx fetch deps mpl_install/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" &&\
	export LDFLAGS="-arch i386 -arch x86_64 -L/Users/mhearne/build make -f make.osx fetch deps mpl_install/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" &&\
	./configure --prefix=/Users/mhearne/build make -f make.osx fetch deps mpl_install&&\
	MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -arch x86_64 -I/Users/mhearne/build make -f make.osx fetch deps mpl_install/include -I/Users/mhearne/build make -f make.osx fetch deps mpl_install/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" LDFLAGS="-arch i386 -arch x86_64 -L/Users/mhearne/build make -f make.osx fetch deps mpl_install/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" make -j3 install&& \
	unset MACOSX_DEPLOYMENT_TARGET
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [zlib] Error 2
Begin forwarded message:
> From: Michael Hearne <mh...@us...>
> Date: April 16, 2010 12:25:50 PM MDT
> To: mat...@li...
> Subject: [matplotlib-devel] Building from svn on OS X, and nabble
> 
> First the easy one:
> 
> When I click on the link for the archives on the matplotlib page:
> http://www.nabble.com/matplotlib---users-f2906.html
> 
> I get sent to this page:
> http://www.nabble.com/-td2885.html#a2906
> 
> which is in some Slavic looking language, so I can't tell what it's a forum for, but it's probably not matplotlib.
> 
> Anyway.
> 
> My _real_ question is about building from svn on OS X.
> 
> (Before anyone asks me _why_ I'm building on OS X, it's because there is a PDF bug in the current released version which I need to avoid).
> 
> There are instructions to modify make.osx to include a local directory where dependencies are downloaded, which I did. There aren't any further instructions, however, so I've building/installing using setup.py, which runs, but has a run-time error regarding free-type fonts that I have encountered before. I've also tried running make with various arguments, none of which appear to do anything useful.
> 
> What are the proper build/install commands for OS X once the make.osx file has been edited?
> 
> Thanks,
> 
> Mike
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Michael H. <mh...@us...> - 2010年04月16日 18:25:58
First the easy one:
When I click on the link for the archives on the matplotlib page:
http://www.nabble.com/matplotlib---users-f2906.html
I get sent to this page:
http://www.nabble.com/-td2885.html#a2906
which is in some Slavic looking language, so I can't tell what it's a forum for, but it's probably not matplotlib.
Anyway.
My _real_ question is about building from svn on OS X.
(Before anyone asks me _why_ I'm building on OS X, it's because there is a PDF bug in the current released version which I need to avoid).
There are instructions to modify make.osx to include a local directory where dependencies are downloaded, which I did. There aren't any further instructions, however, so I've building/installing using setup.py, which runs, but has a run-time error regarding free-type fonts that I have encountered before. I've also tried running make with various arguments, none of which appear to do anything useful.
What are the proper build/install commands for OS X once the make.osx file has been edited?
Thanks,
Mike
Hello.
I would like to know how to find informations about how pyplot, imshow
and contourf, contour functions are working.
I'm looking for a way to derive/improve this functions because I dont
know how to make my plot properly otherly.
Thank you very much.
Greetings,
David Kremer
From: Amit A. <aro...@gm...> - 2010年04月16日 11:15:24
First of all, thanks, klukas for the useful piece of code.
Jae-Joon Lee wrote:
> On Mon, Mar 29, 2010 at 12:30 PM, Jeff Klukas <kl...@wi...> wrote:
>> # Create BrokenAxes with bottom from 0 to 5 and top from 30 to 35
>> ax = plt.broken_axes(ybounds=[0.,5.,30.,35.])
>> # Plot a line onto BOTH subaxes
>> ax.plot(range(35),range(35))
>>
>> The call to plot would get routed through __getattribute__, which
>> would then call plot for each of the subaxes. This would be much more
>> intuitive than my existing breaky solution, where you have to loop
>> over all subaxes and plot on each individually.
>>
> 
> How do you want to handle
> 
> l1, = ax.plot(range(35), range(35))
> l1.set_color("r")
> 
> then?
> 
Well, I guess BrokenAxes.plot should return a list of lines instead of a
line in ll.
i.e. something like "[[x.lines[-1] for x in ax.subaxes]]"
would replace "[ax.lines[-1]]" as the return value.
Better yet, instead of a list we should have a "vector-type" proxy
container that should transfer method calls to the contained items.
> I think keeping two (or more) separate artists for each axes while an
> user think there is only one artist (because only one axes is exposed
> to the user) is not a good idea.
Ideally this should really be one artist.
However from JDH's response I understand this would be harder to
implement (using custom transforms or something). Maybe emulating one
using the current implementation (as I suggested above) is good enough.
Meanwhile, this redundant looping for each plot call is annoying, so I
can offer the following compromise: store the subaxes in the parent
(broken)Axes (add "self._subaxes = subaxes" before returning from breakx
and breaky), then add a new plot_subs method:
def plot_subs(self,*args,**keys):
 for sub in self._subaxes:
 res = sub.plot(*args,**keys)
 return res
This is a simplified version, returning just the lines of the last
subaxes, but at least this way you can avoid the looping.
 Regards,
 Amit A.

Showing 5 results of 5

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