From: Christopher B. <Chr...@no...> - 2006-02-01 19:40:51
|
Eric Firing wrote: > Attached is a slight modification of your test case, with annotations. Thanks Eric, that does work. I'd rather the Z-order be set with the LineCollection under the plot, but it doesn't matter much, and I can probably manipulate that by hand if need be. > think it does what you want--sort of. But I agree that there is a bug. > After chasing references backwards and forwards through axes.py, > axis.py, ticker.py, and _transforms.cpp, I don't quite understand how > everything works, You got father than me. > Workarounds: either set the dataLim explicitly, or add the collection > after the plot command (as in the attached modified script). The latter > only works if the plot command sets the dataLim to be large enough to > cover everything in the collection. Yes, I may need to set dataLim myself after all. > I would like to make a genuine bugfix, but I do not yet understand all > this well enough to do so right now. Maybe John will chime in with a > good solution. I think the relevant questions are these: Is there a reason that add_collection doesn't reset the dataLim? Is there a reason that axes.cla() doesn't reset the dataLim? The fix will depend on those answers. I'd like to see both done. John? Thanks for your help, Eric. -Chris -- 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 Chr...@no... |