I have a set of (x, y) data points, and each point has an attached value to it. I'd like to create a heatmap that uses the attached value to determine color, and uses color intensity/transparency to determine frequency.
Is there anyway I can implement this with matplotlib? Thanks!
Edit: I am working with traffic accident data. The (x,y) points are just latitude and longitude pairs, and each of these has a corresponding value for the severity of the accident. The ideal plot would use color to represent severity, but then transparency to represent frequency of location points. For example, then places with a small accident number, but more high severity accidents will be a transparent red, but places with high accident numbers, but not many severe accidents will be a opaque blue