When the canvas for plotting gets resized, if it goes below a minimum size matplotlib throws an error. When resizing we check to make sure the canvas does not go below this size. However, if the window is being resized rapidly enough, the check can pass but be below the minimum size by the time matplotlib actually plots. Right now we go around this by catching and passing ValueErrors when resizing the canvas, but this is not good coding practice.
When the canvas for plotting gets resized, if it goes below a minimum size matplotlib throws an error. When resizing we check to make sure the canvas does not go below this size. However, if the window is being resized rapidly enough, the check can pass but be below the minimum size by the time matplotlib actually plots. Right now we go around this by catching and passing ValueErrors when resizing the canvas, but this is not good coding practice.