In [ ]:
import iris
import iris.plot as iplt
import matplotlib.pyplot as plt
from cube_browser import Contour, Browser, Contourf, Pcolormesh
Load and prepare your cubes
In [ ]:
air_potential_temperature = iris.load_cube(iris.sample_data_path('colpex.pp'), 'air_potential_temperature')
In [ ]:
print air_potential_temperature
Set up your map projection and your axes, and then make your plots using your preferred plot-types and layout.
Finally, display your plots with their associated sliders.
In [ ]:
projection = iplt.default_projection(air_potential_temperature)
ax1 = plt.subplot(221, projection=projection)
ax2 = plt.subplot(222, projection=projection)
ax3 = plt.subplot(223, projection=projection)
ax4 = plt.subplot(224, projection=projection)
cf1 = Pcolormesh(air_potential_temperature[0, 0], ax1)
cf2 = Contour(air_potential_temperature[:, 0], ax2)
cf3 = Contour(air_potential_temperature[0], ax3)
cf4 = Pcolormesh(air_potential_temperature, ax4)
Browser([cf1, cf2, cf3, cf4]).display()