astrofrog / mpl-scatter-density

:zap: Fast scatter density plots for Matplotlib :zap:
BSD 2-Clause "Simplified" License
498 stars 25 forks source link

Downsample when resizing plot window #13

Closed astrofrog closed 6 years ago

astrofrog commented 6 years ago

It would be nice to downsample in cases where an interactive window is resized. The issue is that there is no such thing as a 'start resize' and 'end resize' events in matplotlib, so instead we may have to have some kind of timer that gets started on resize events and gets reset at every resize event, and if the timer gets to the pre-defined time (e.g. 0.5 seconds) without another resize event, then the data is upsampled again.

astrofrog commented 6 years ago

Mostly done in #14 but would be nice to expand to other backends than Qt

astrofrog commented 6 years ago

I'm going to close this. We can add new backends as requested.