We want a complete, free standing example that exposes the bug, with  
any additional info like mpl backend and version number.



On Sep 18, 2009, at 7:43 AM, "Werner F. Bruhin"  
<werner.bru...@free.fr> wrote:

> John,
>
> John Hunter wrote:
>> 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?
>>
> I narrowed it down to one line of code, if I comment the following  
> line
> then the error goes away.
>
>        axes.xaxis.set_major_formatter(yearFmt)
>
> Is this enough for you?  Or do you like some runnable code?
>
> Werner
>
>
>
>
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register  
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to