I just noticed that when I resize the plot in my application, for example to full screen, there are parts that are not repainted correctly and are left all black. These black areas are also visible while resizing the plot, looks like flickering. I have encountered the same issue both in Win XP and Win 7.
Anybody knows how to fix this? I attach a screenshot of the problem: