Skip to content

Instantly share code, notes, and snippets.

View niallrobinson's full-sized avatar

Niall Robinson niallrobinson

  • Met Office
  • Exeter
View GitHub Profile
@ajdawson
ajdawson / cube_explorer.py
Last active December 18, 2015 03:48
This is a fairly bare-bones proof of concept for a cube explorer type function. I didn't bother to add buttons for exploring over more than one dimension, but the code supports it. It only supports iris plot functions, it needs logic adding to handle matplotlib functions.
"""
Very basic implementation of a cube explorer function.
This is a proof of concept rather than a solid design idea. It is
currently hard-wired to work on one dimension only although the
workings allow for multiple dimensions, I just didn't get round to
writing code to add the buttons for these!
"""
import functools