Hi, Sorry, if this has been brought up before, but I missed a while reading the list.
When I updated my system lately, I also installed the current version of mpl (0.90.1) and that gave me a DeprecationWarning that I should use LineCollection now to get my horizontal lines. Well, I didn't figure out how to do that until now. (NB I have an own wxpython app which makes heavy use of mpl and mostly uses subplot instances.) Well, this code snippet from pylab import * from matplotlib.collections import LineCollection x = subplot(211) x.add_collection(LineCollection([(0,0)])) gives the following Traceback: Exception in Tkinter callback Traceback (most recent call last): File "lib-tk/Tkinter.py", line 1406, in __call__ return self.func(*args) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 151, in resize self.show() File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 154, in draw FigureCanvasAgg.draw(self) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 392, in draw self.figure.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 601, in draw for a in self.axes: a.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1286, in draw a.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/collections.py", line 700, in draw transoffset) TypeError: CXX : Error creating object of type N2Py7SeqBaseINS_6ObjectEEE The traceback is independent of the backend used, same for wxagg at least. Guess, I'm missing something stupid. Can somebody enlighten me? Thanks, Christian ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users