Tests for plotting routines.

Note that tests for `cmap_discretize` and `plot_array_distribution` are just
smoke tests. That is they don't check the validity of the results. Just
that the functions don't raise exceptions under normal operation.