Hi Jae-Joon, Jae-Joon Lee wrote: > My guess is that the error happens when the matplotlib tries to format > the date ticklabels when the xlim is not correctly set, i.e., [0, 1] > in the example. But, I'm not sure what is the best approach here. > > Werner, if there is nothing to draw (i,e, xlim is [0,1]), change the > xlim to some arbitrary range that is greater than 1 (e.g, [1,2]). For > example, in your code, you may do something like following after > calling the autoscale_view(). > Thanks for the tip. I have in the mean time reorganized my code and I am just bypassing the problematic code if there is nothing to draw.
Werner ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users