A simple library for plotting lines with color gradients
Project description
rainbowline
A simple library for plotting lines with color gradients in matplotlib.
Usage
The function rainbow_line()
has the following arguments:
x
: the x values to ploty
: the y values to plotc
: the values to map to a color using the specifiedcmap
. If not provided, the index of x or y will be used if possible.cmap
: (optional) colormap to apply to thec
values. Defaults to 'jet'.norm
: (optional) normalization forc
values. If not given, the min and max values ofc
will be used. One of the following:- matplotlib norm object.
- float or int: in this case, values will be normalized to the range (0, norm)
- tuple defining the min and max values to which to normalize
ax
: (optional) matplotlib Axes object on which to plotautoscale_view
: whether to scale the axes to the extents of the plot. Default True.**kwargs
: (optional) kwargs which will be passed to matplotlibLineCollection
constructor.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rainbowline-0.0.1.tar.gz
(57.8 kB
view hashes)
Built Distribution
Close
Hashes for rainbowline-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b734802350e796fe7799d3ef0be41966595536d9d3f860079db3f7192aaaf936 |
|
MD5 | 7584c1e1e8213fc90df35b9d24322b5d |
|
BLAKE2b-256 | 078e274094745cf38263f326f08725efe11e163c37de882fded18939e0e3bcb9 |