Making a geographic grid with pyproj

In [1]:
import cartopy
import cartopy.crs as ccrs
import geopy
import matplotlib.pyplot as plt
import numpy as np

The aim of this notebook is to create a spatial grid of uniform spacing from a user defined origin point

Along the way I will introudice some functionality of geopy …

more ...

Pleasing maps with cartopy

To make a pretty, publication grade map for your study area look no further than cartopy.

In this tutorial we will walk through generating a basemap with:

  • Bathymetry/topography
  • Coastline
  • Scatter data
  • Location labels
  • Inset map
  • Legend

This code can be generalised to any region you wish to map

First …

more ...

Better plotting with matplotlib subplots

Today we'll be using matplotlib's pyplot to make clearer, prettier figures.

First we import packages and generate some data to plot.

In [2]:
import numpy as np
import matplotlib.pyplot as plt

Pump up the font sizes on plots. Better to do it now than when you need 10 plots …

more ...

Filled contour plots and colormap normalization

Today we are going to learn some tricks about plotting two dimensional data with matplotlib contourf function.

In [1]:
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
%matplotlib inline

Let us start with creating two sample 2D arrays, Z1 and Z2.

In [2]:
# Array …
more ...