Using matplotib in python, you can make a simple histogram by providing a list of elements that will be displayed along with the list of weights, so that the contribution of each element to the cell to which it belongs is adjusted according to its weight, for example
import matplotlib.pyplot as plt
...
plt.hist(items, weights = weightsOfItems)
I am trying to plot a histogram of a hexagonal bin of two values ββagainst each other, which can be done with
plt.hexbin(xValues, yValues)
As before, I would like the contribution of each pair to the basket to which it belongs to be adjusted in accordance with the list of weights. From the hexbindocumentation, it seems that I should do this by specifying the input for the C parameter, i.e.
plt.hexbin(xValues, yValues, C = weightsOfValues)
, , . xValues ββ yValues ββ , xSamples ySamples. , , , , , xValues ββ yValues, .
, - , ?