Ben Gamari (FOSS) wrote: > Hey all, > > I've come across quite a problem while using pylab in a recent project. > It seems that the second time I call axvspan or axvline, the view limits > are reset (seemingly arbitrarily). I have attached a code sample > (derived from my project) to demonstrate this issue. The code sample > opens a figure with a single line and vline, adding another set with > every key press. You will see that when the figure is initially plotted, > the view limits are correct for the dataset, however as the second > line/vline is plotted, the limits are stretched. It seems that this must > be a bug in matplotlib. Any help or input anyone could offer would be > greatly appreciated. Thanks,
This bug is fixed now in svn for axvline and axhline. If you need a workaround for your current version of mpl, you could save the view limits before the axvline call and restore them after it. I still need to check axvspan and axhspan; they probably need a similar fix. Eric ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users