Open matthew-law opened 1 year ago
This is a good idea! I guess now you should be able to get there by manipulating the output ax
object but that's suboptimal. Maybe one general way of allowing this is to let the user pass keywords for imshow
in a imshow_kwds
dict?
We can flesh out ideas here and, if you have bandwidth, I'd very much welcome PRs :-)
Two notes on this.
If someone wanted to do that anyway, here's a nice documentation https://scikit-image.org/docs/dev/auto_examples/color_exposure/plot_rgb_to_gray.html (but ensure that we reimplement it on top of our numpy array and do not depend on scikit-image).
It would be useful to be able to turn any basemap greyscale. I've tried passing
cmap = 'gray'
tocx.add_basemap
(which I think callsplt.imshow
), but haven't been able to get anything working.Example of the kind of case in which a greyscale option for the basemap would be handy in the interest of reducing visual clutter / foregrounding the overlying data without losing too much of the information provided by the basemap: