gitter-lab / ml4bio

A graphical interface for sklearn classification to introduce machine learning to biologists
MIT License
11 stars 2 forks source link

Ignoring errors when resizing canvas #12

Open csmagnano opened 5 years ago

csmagnano commented 5 years ago

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.