-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
i know it isn't in keeping with the vector emphasis of Chart, but i frequently have need for heatmaps of 2-d functions:
it would be a pain to drag in JuicyPixels or something just for this. for now, i faked it like:
spots = area_spots_4d_max_radius .~ 2
$ area_spots_4d_palette .~ palette
$ area_spots_4d_values .~ values
$ area_spots_4d_opacity .~ 0.9
$ def
palette = uncurryRGB (rgbUsingSpace sRGBSpace) <$> (\h -> hsv h 1 1) <$> [0..360-1]
values = (\((x,y),v) -> (x, y, 2::Int, v)) <$> f
where f :: (Fractional a, Fractional b) => [((b,b), a)], but this is obviously not an efficient rendering.
rprospero, smunix and jack-fs
Metadata
Metadata
Assignees
Labels
No labels
