CubeBrowser / cube-explorer

browser based exploration of iris cubes
BSD 3-Clause "New" or "Revised" License
8 stars 12 forks source link

Optimizations for updating Image and GeoFeature plots #40

Closed philippjfr closed 8 years ago

philippjfr commented 8 years ago

Rather than redrawing a pcolormesh on each frame the GeoImagePlot now updates the artist directly. This only works because the extents of the colormesh shouldn't change across a single cube. To be completely safe I could request a full redraw if the lat/lon coordinates change but I don't think it's necessary. I've also avoided updating the the GeoFeature on each frame as it is expected to be static.

If someone thinks either of these assumptions isn't valid I could check more explicitly if things are unchanged and revert to the old behavior if they do not hold.

philippjfr commented 8 years ago

There are some issues with the projection, so this PR shouldn't be merged for now.