I am trying to plot a polygon shape on a FigureCanvas. I have plotted the draw2d ScalablePolygonShapes successfully but the issue is that when a polygon whose one side is around (approx figure)32685 pixels there is some refresh problem. The color that should be filled inside the polygon gets filled in the left over parts of the rectangular bounds. When I plot it with the height of bounds as 32674 it looks like this and when I plot it with the height of bounds as 32685 it looks like this Any pointers would be of great help thank you.