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



Showing 6 results of 6

From: Ken M. <km...@gm...> - 2005年08月30日 18:15:35
On Aug 30, 2005, at 10:45 AM, Arnd Baecker wrote:
> I would have thought so as well. However I get:
<snip>
> A search for wxPython.h on
> http://www.debian.org/distrib/packages#search_packages
> gives no hits.
Sorry, due to a lack of coffee this morning I misread "wxPython.h" as 
"wxWidgets.h" or something daft, yielding the kneejerk "install the 
-dev package" response.
I wasn't aware of this situation, but it has the potential to be a big 
problem for me at work, where we primarily run Debian. I have emailed 
Ron Lee, the wxgtk2.4 package maintainer, about the situation. We'll 
see what he has to say on the matter.
> I agree. I wonder if anything improved with wx2.6? (for our 
> PlottingCanvas
> we even dared to keep drawing DCs around, and it works without 
> problems...)
What PlottingCanvas is this? I'd be interested in seeing what 
optimizations you guys performed, if the source is available.
>> However, I think there are a couple pieces of lower-handing fruit, 
>> like not
>> making an extra source copy when blitting (_wxagg.cpp:159-190), that 
>> will
>> offer speedups.
>
> That would be cool (I have to admit, that I am not too worried when 
> FPS>100
> on my machine. However, we are currently investigating to use 
> matplotlib for
> a computational physics course (which will be next summer) and many of 
> the
> students have *much* slower machines. So we need maximum speed but 
> with a
> minimum of coding hassle (around 30% of the students have never 
> programmed
> before ...).
Just leveling the playing field between WXAgg and GtkAgg is exciting 
for me, because that means that future efforts at general optimization 
will net a bigger speed improvement for WXAgg.
I'd imagine the plotting speed will be good enough for something along 
the lines of interactive plotting with iPython or visualizing results 
with pylab. Speaking as a recent survivor of a computational physics 
class, I expect you to see a huge benefit from using Python as the 
language and matplotlib as the visualization, especially if you have 
students who have never programmed before.
Ken
From: Matt N. <new...@ca...> - 2005年08月30日 17:15:25
Ken, all,
I'd tried this patch out on Mac OS X, with standard Mac-based python
and wxPython 2.6. I had to explicitly set the environmental variable
WX_CONFIG, but after that it built fine and runs fine.
For my scripts on a slow G4 Powerbook, I see a small improvement in
speed compared with mpl 0.81. I'll be eager to try this on Windows.
Thanks Ken,
--Matt Newville <newville at cars.uchicago.edu>
From: John H. <jdh...@ac...> - 2005年08月30日 15:58:42
>>>>> "Arnd" == Arnd Baecker <arn...@we...> writes:
 >> It does have wxPython.h, it's just not in the libwxgtk2.4
 >> package. You'll need to install the libwxgtk2.4-dev package as
 >> well to get the headers.
 Arnd> I would have thought so as well. However I get:
 ....
 Arnd> A search for wxPython.h on
 Arnd> http://www.debian.org/distrib/packages#search_packages gives
 Arnd> no hits.
I found this too -- it may be rightly considered a bug in the dev
package. I checked out the src package and then copied over the
headers. The following worked for me
 apt-get source libwxgtk2.5.3
 sudo cp -a wxwidgets2.5-2.5.3.2ubuntu4/include/wx-2.5/wx/wxPython /usr/include/wx-2.5/wx/
JDH
From: Arnd B. <arn...@we...> - 2005年08月30日 15:45:54
Hi,
On 2005年8月30日, Ken McIvor wrote:
> On Aug 30, 2005, at 9:31 AM, Arnd Baecker wrote:
[...]
> > a) debian problem:
> > Very interestingly debian stable (sarge)
> > does not have wxPython.h
>
> It does have wxPython.h, it's just not in the libwxgtk2.4 package.
> You'll need to install the libwxgtk2.4-dev package as well to get the
> headers.
I would have thought so as well. However I get:
dpkg -L libwxgtk2.4-dev
/.
/usr
/usr/bin
/usr/bin/wxgtk-2.4-config
/usr/lib
/usr/lib/wx
/usr/lib/wx/include
/usr/lib/wx/include/univ
/usr/lib/wx/include/gtk-2.4
/usr/lib/wx/include/gtk-2.4/wx
/usr/lib/wx/include/gtk-2.4/wx/setup.h
/usr/lib/libwx_gtk-2.4.a
/usr/lib/libwx_gtk_gl-2.4.a
/usr/share
/usr/share/doc
/usr/share/doc/libwxgtk2.4-dev
/usr/share/doc/libwxgtk2.4-dev/copyright
/usr/share/doc/libwxgtk2.4-dev/changelog.gz
/usr/share/man
/usr/share/man/man1
/usr/lib/libwx_gtk-2.4.so
/usr/lib/libwx_gtk_gl-2.4.so
/usr/share/man/man1/wxgtk-2.4-config.1.gz
A search for wxPython.h on
http://www.debian.org/distrib/packages#search_packages
gives no hits.
> > GTKAgg FPS: 131.897223221
> > TkAgg FPS: 65.5153012595
> > WXAgg FPS: 100.55
> > (200 frames: 1.99 seconds, 200 blits: 0.95 seconds)
> > (FPS: 100.55 BPS: 211.00)
> > WXAgg --no-accel FPS: 53.21
> > (200 frames: 3.76 seconds, 200 blits: 2.55 seconds
> > (FPS: 53.21 BPS: 78.40)
> >
> >
> > I am running debian sarge, on a PIV, 2.8 GHz and an nVdia Quadro4 NVS
> > graphics card (@1600x1200).
> > So WXAgg is almost on par with GTGAgg - great!!
>
> That's very exciting news. I hadn't had a chance to test and profile
> the accelerator under Debian, nor had I bothered profiling it against
> GtkAgg and TkAgg under OSX. I should probably get those backends up
> and running (darn macs) and do so.
>
> > Ken, in _wxagg.cpp you mention that you planned to write a
> > agg_to_wx_bitmap()
> > which draws directly to a bitmap, but that this might not speed up
> > things
> > much because of: AGG->wx.Image->wx.Bitmap before you can blit using a
> > MemoryDC.
>
> Yes, I am concerned that re-implementing that part of the blit into C++
> won't speed things up enough. I can understand doing the whole
> Image/Bitmap thing for portability (especially when wxWindows got
> started in 1992), but it's rather obnoxious when all it does is make
> extra copies of RGB data.
I agree. I wonder if anything improved with wx2.6?
(for our PlottingCanvas we even dared to keep
drawing DCs around, and it works without problems...)
> However, I think there are a couple pieces
> of lower-handing fruit, like not making an extra source copy when
> blitting (_wxagg.cpp:159-190), that will offer speedups.
That would be cool
(I have to admit, that I am not too worried when FPS>100
on my machine. However, we are currently investigating
to use matplotlib for a computational physics course
(which will be next summer) and many of the students
have *much* slower machines. So we need maximum speed
but with a minimum of coding hassle (around 30% of the students
have never programmed before ...).
> Unfortunately, they'd be portable across Agg backends, so GtkAgg would
> get faster too. ;-)
I would not mind too much ;-).
> > Maybe you can contact Chris Barker if he has an idea on this (or are
> > there any
> > solutions available in the context of wxart2d or chaco? - quick
> > googling did not
> > reveal anything ...)
>
> I'll do so, if he doesn't see this part of the message than chime in.
> I have come across some old wxWindows mailing list exchanges indicating
> that there's no way to avoid the Image->Bitmap conversion as a
> requirement for drawing RGB images, so I'm not planning to loose too
> much sleep over it. I hadn't heard about wxart2d before, but will look
> into it to see how their agg canvas is implemented. I'll see if I can
> find the chaco repository and do the same there.
>
> Thanks for sharing your anim.py profiling results. It's heartening to
> see WXAgg's full-redraw speed being limited by the rest of matplotlib,
> rather than the backend.
Indeed this is good news!! Many thanks,
Arnd
From: Ken M. <km...@gm...> - 2005年08月30日 15:26:31
On Aug 30, 2005, at 9:31 AM, Arnd Baecker wrote:
> Many thanks for the update of the patch.
> It turned out that I could not apply it to this mornings CVS checkout
> because John's time machine was already active and he has put your
> patch into CVS ;-)
Really? Yay for me! ;-)
> During installation I encountered two glitches:
>
> a) debian problem:
> Very interestingly debian stable (sarge)
> does not have wxPython.h
It does have wxPython.h, it's just not in the libwxgtk2.4 package. 
You'll need to install the libwxgtk2.4-dev package as well to get the 
headers.
> GTKAgg FPS: 131.897223221
> TkAgg FPS: 65.5153012595
> WXAgg FPS: 100.55
> (200 frames: 1.99 seconds, 200 blits: 0.95 seconds)
> (FPS: 100.55 BPS: 211.00)
> WXAgg --no-accel FPS: 53.21
> (200 frames: 3.76 seconds, 200 blits: 2.55 seconds
> (FPS: 53.21 BPS: 78.40)
>
>
> I am running debian sarge, on a PIV, 2.8 GHz and an nVdia Quadro4 NVS
> graphics card (@1600x1200).
> So WXAgg is almost on par with GTGAgg - great!!
That's very exciting news. I hadn't had a chance to test and profile 
the accelerator under Debian, nor had I bothered profiling it against 
GtkAgg and TkAgg under OSX. I should probably get those backends up 
and running (darn macs) and do so.
> Ken, in _wxagg.cpp you mention that you planned to write a 
> agg_to_wx_bitmap()
> which draws directly to a bitmap, but that this might not speed up 
> things
> much because of: AGG->wx.Image->wx.Bitmap before you can blit using a 
> MemoryDC.
Yes, I am concerned that re-implementing that part of the blit into C++ 
won't speed things up enough. I can understand doing the whole 
Image/Bitmap thing for portability (especially when wxWindows got 
started in 1992), but it's rather obnoxious when all it does is make 
extra copies of RGB data. However, I think there are a couple pieces 
of lower-handing fruit, like not making an extra source copy when 
blitting (_wxagg.cpp:159-190), that will offer speedups. 
Unfortunately, they'd be portable across Agg backends, so GtkAgg would 
get faster too. ;-)
> Maybe you can contact Chris Barker if he has an idea on this (or are 
> there any
> solutions available in the context of wxart2d or chaco? - quick 
> googling did not
> reveal anything ...)
I'll do so, if he doesn't see this part of the message than chime in. 
I have come across some old wxWindows mailing list exchanges indicating 
that there's no way to avoid the Image->Bitmap conversion as a 
requirement for drawing RGB images, so I'm not planning to loose too 
much sleep over it. I hadn't heard about wxart2d before, but will look 
into it to see how their agg canvas is implemented. I'll see if I can 
find the chaco repository and do the same there.
Thanks for sharing your anim.py profiling results. It's heartening to 
see WXAgg's full-redraw speed being limited by the rest of matplotlib, 
rather than the backend.
Ken
From: Arnd B. <arn...@we...> - 2005年08月30日 14:31:43
Hi Ken,
On 2005年8月29日, Ken McIvor wrote:
[...]
> I will resubmit the wx-anim.tar.gz patch to sourceforge with this
> correction.
Many thanks for the update of the patch.
It turned out that I could not apply it to this mornings CVS checkout
because John's time machine was already active and he has put your
patch into CVS ;-)
During installation I encountered two glitches:
a) debian problem:
 Very interestingly debian stable (sarge)
 does not have wxPython.h
 As a work-around I downloaded the corresponding source from debian
 wget
http://ftp.debian.org/debian/pool/main/w/wxwindows2.4/wxwindows2.4_2.4.3.1.tar.gz
 and copied all header files wxwindows2.4-2.4.3.1/wxPython/src/*.h
 to a (newly created) /usr/include/wx/wxPython.
 Then the installation went fine.
b) CVS problem:
 Calling python animation_blit_wx.py from the examples directory
 gives the error
 lib/python2.3/site-packages/matplotlib/__init__.py:788: UserWarning:
could not find rc file; returning defaults
 warnings.warn(message)
 Traceback (most recent call last):
 File "animation_blit_wx.py", line 10, in ?
 import pylab as p
 File "/scratch/abaecker/SOFT//lib/python2.3/site-packages/pylab.py",
line 1, in ?
 from matplotlib.pylab import *
 File
"/scratch/abaecker/SOFT//lib/python2.3/site-packages/matplotlib/pylab.py",
line 194, in ?
 import cm
 File
"/scratch/abaecker/SOFT//lib/python2.3/site-packages/matplotlib/cm.py",
line 372, in ?
 atad['Blues']=_Blues_data
 NameError: name '_Blues_data' is not defined
 Commenting out the corresponding block in matplotlib/cm.py
 everything works fine again
 (John: I think this is a leftover from rev. 1.19 for cm.py "removed
extra cmaps until license is resolved")
OK, now to the new WXAgg (and animation in general):
Running:
 python animation_blit.py
 python animation_blit_tk.py
 python animation_blit_wx.py
 python animation_blit_wx.py --no-accel
gives:
 GTKAgg FPS: 131.897223221
 TkAgg FPS: 65.5153012595
 WXAgg FPS: 100.55
 (200 frames: 1.99 seconds, 200 blits: 0.95 seconds)
 (FPS: 100.55 BPS: 211.00)
 WXAgg --no-accel FPS: 53.21
 (200 frames: 3.76 seconds, 200 blits: 2.55 seconds
 (FPS: 53.21 BPS: 78.40)
I am running debian sarge, on a PIV, 2.8 GHz and an nVdia Quadro4 NVS
graphics card (@1600x1200).
So WXAgg is almost on par with GTGAgg - great!!
Ken, in _wxagg.cpp you mention that
you planned to write a agg_to_wx_bitmap() which
draws directly to a bitmap, but that
this might not speed up things much because
of: AGG->wx.Image->wx.Bitmap before you can blit using a MemoryDC.
Maybe you can contact Chris Barker if he has an idea on this
(or are there any solutions available in the context of wxart2d or
chaco? - quick googling did not reveal anything ...)
Anyway, the speed provided by the animate option
is a fantastic improvement - many thanks John and Ken!!
Just for comparison:
for backend in `echo "Tk TkAgg GTK GTKAgg WX WXAgg"`
do
 echo $backend
 python anim.py -d${backend}
done
Tk FPS: 35.5331434162
TkAgg FPS: 20.3487964649
GTK FPS: 35.528699289
GTKAgg FPS: 26.9074415174
WX FPS: 13.7550465745
WXAgg FPS: 26.0163513384
Many thanks,
Arnd

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