-
Notifications
You must be signed in to change notification settings - Fork 17
Description
@geo-luca's recent contributions have brought up the need for standardizing the color maps for plotting topography and other terrain attributes.
We currently have access to all of matplotlib's default color maps. The default color map for GridObject.plot is whatever the user has specified in their rcParams -- probably viridis if they haven't touched it. The default color map for GridObject.plot_hs is terrain, which we have coded in as the default cmap parameter.
matplotlib's built-in color maps with a topographic orientation namely terrain and gist_earth are not perceptually uniform. @geo-luca uses a few different ones in the updated tutorial notebooks, notably cubehelix, which is closer to perceptually uniform but has a slightly non-traditional look.
MATLAB TopoToolbox supplies several alternative color maps. The Scientific Colour Maps from Fabio Crameri are helpfully provided by a Python package. There is also a cmocean package.
We could easily depend on one or both of these packages and reexport their color maps, along with any additional custom color maps that we might include.
More important, I think, is to settle on some good defaults that we can share between MATLAB and Python (and R eventually). We can use these defaults in the documentation and set them as defaults in our various plotting functions.