When I run wxPyPlot on my Linux box (Debian, Sarge, wxPython 2.4.0.2) I get
complaints about missing DrawRectangleList and DrawEllipseList on the
wxPaintDC and the wxClientDC.
I couldn't find these methods in the wxWindows docs either. Is this
something that is only supported on Windows ?
Regards,
Rick
No, but it is something that is only supported in 2.4.0.7, the latest
wxPython release.
Look in the demo under Misc, and you'll see DrawXXXList. These are a
bunch of DC methods that draw a whole list of graphics objects at once,
so that the looping is done in C++, rather than Python. They are add-ons
for wxPython, and don't exist in C++, which is why they don't exist in
the docs.
DrawLineList and DrawPointList have been in wxPython for a while, and a
few more, including DrawRectangleList, were just added in the last
release. I'm working on adding all the rest of the DC Draw methods. In
particular, DrawBitmapList has some nice potential for drawing the
markers in wxPyPlot.
Honestly, the performance difference seems to be only substantial for
simple objects, like lines and points, and to some extend rectangles,
but I like the symmetry of having them all.
So, either upgrade wxPython, or modify the wxPyPlot code to only
optionally use the DrawXXXList methods. I was thinking of doing the
latter myself, but haven't had a chance yet.
-Chris
ยทยทยท
richard.lawson@colinx.com wrote:
When I run wxPyPlot on my Linux box (Debian, Sarge, wxPython 2.4.0.2) I get
complaints about missing DrawRectangleList and DrawEllipseList on the
wxPaintDC and the wxClientDC.
I couldn't find these methods in the wxWindows docs either. Is this
something that is only supported on Windows ?
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov