Skip to content

feature request: some kind of raster plotΒ #95

@eflister

Description

@eflister

i know it isn't in keeping with the vector emphasis of Chart, but i frequently have need for heatmaps of 2-d functions:

screen shot 2015-08-20 at 6 57 31 pm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions