Matplotlib Colormap with two parameter
I am trying to represent two variables x and y on a map using colours. So far the best I can acheive is using color for one variable and transparancy for another. plt.Polygon(shape.points, fill=False, color=cmap(y), alpha=x) Is it possible to create a 2D colormap in matplotlib that takes two variables? ImportanceOfBeingErnest In general colormaps in matplotlib are 1D, i.e. they map a scalar to a color. In order to obtain a 2D colormap one would need to somehow invent a mapping of two scalars to a color. While this is in principle possible, it's not as convenient as the usual colormaps. An