On Sun, Apr 20, 2008 at 9:13 PM, hjc520070 <[EMAIL PROTECTED]> wrote: > > Thanks for your help. I get it work. However, an interesting thing appears. > The following two codes(code 1 and code 2) makes different result??? Only > set background in different place. Anyone can tell me why? I am eager to > know it.
In code2, you copy the background before the canvas is drawn, which is wrong. code 1 is the correct approach. Calling ax.plot is not enough to cause the background to be drawn. You must call fig.canvas.draw first. JDH ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users