On Fri, Sep 18, 2009 at 4:39 AM, Werner F. Bruhin <werner.bru...@free.fr> wrote: > I have multiple canvas and sometimes one or more might have nothing to > draw (no data). > > Currently I just call. > > canvas.draw() > canvas.Refresh() > > for each of the canvas, but this gives me an error if there is no data. > > Is there a built-in flag I can check before calling draw? Or do I have > to keep create my own?
There is no such flag, but you should not get an error on drawing an empty figure or one that doesn't "need" to be drawn. Can you post example code that produces the error? JDH ------------------------------------------------------------------------------ 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