gonum / gonum/plot

plot: consider implementing a gradient

Open
#625 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

the original query had landed there: https://github.com/go-hep/hep/issues/701

it would be great to allow some filling an area of a plot with a gradient.
_e.g.:_ something along the lines of
![img](https://i.stack.imgur.com/79n2q.png)
![cmb](https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Cobe-cosmic-background-radiation.gif/384px-Cobe-cosmic-background-radiation.gif)

as noted in the the original issue, there are already a couple of gradient implementations:

- https://github.com/lucasb-eyer/go-colorful/blob/master/doc/gradientgen/gradientgen.go
- https://godoc.org/golang.org/x/exp/shiny/iconvg/internal/gradient

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.