Is there a way to colorize a point according to the color scheme used by the contour function? I understand that I can specify colormap, but presumably the contour function does some scaling and / or normalization of the data?
Here is an example:
import numpy as np import scipy.stats as ss def plot_2d_probsurface(data, resolution=20, ax = None, xlim=None, ylim=None):
So, in the graph below, the points with the highest density will be colored brown, next orange, next yellow, etc. The values according to which points should be colored are already in point_values . It just needs to be converted to colors and passed to the plot function. But how do I scale them, like on a contour graph?

source share