I'm having problems with the data limits when I use a LineCollection
Here is the relevant code. A VectorLinecollection is a subclass of LineCollection. ax is an Axes instance.
VLC = VectorLineCollection(t, y, theta, self.Figure, ax)
ax.plot(t, y, 'o')
print "The lines are:", ax.get_lines()
print "AutoScaleOn:", ax._autoscaleon
This all works fine when I call it the first time, but when I call it again, with a new LineCollection, dataLim is not re-set. If I comment out the add_collection call, and just do the plot, then dataLim does get reset when clear is called, so autoscale_view obviously doesn't work.
any ideas what's wrong? How would I force a re-set of dataLim?
This is buried in a wxmpl based program, but if I need to, I'll make a small stand-alone script that demonstrates the problem.
Christopher Barker, Ph.D.
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