yt-project / widgyts

Widgets for yt
https://widgyts.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

Artifacts when zooming out #21

Closed matthewturk closed 3 years ago

matthewturk commented 6 years ago

If we zoom out past the left and right edges, the image array doesn't get overwritten, leaving lots of artifacts. We could fix this by clearing the image, but the most common use case is when we zoom past limits, so we could also disable that.

munkm commented 6 years ago

Disabling zooming out past the bounds is a good idea, but what if our canvas is square but the data array/image array isn't? We might have a use case where we zoom out to the edge of the array that's wider and still see artifacts from the shorter edge.

munkm commented 6 years ago

Maybe we could make it so we only clear the image when the canvas width is greater than one of the array bounds and also disable zooming past the largest array bounds?

matthewturk commented 6 years ago

Yup, that'd work!