Skip to main content

rainbowline

A simple library for plotting lines with color gradients in matplotlib.

Example plot

Usage

The function rainbow_line() has the following arguments:

  • x: the x values to plot
  • y: the y values to plot
  • c: the values to map to a color using the specified cmap. If not provided, the index of x or y will be used if possible.
  • cmap: (optional) colormap to apply to the c values. Defaults to 'jet'.
  • norm: (optional) normalization for c values. If not given, the min and max values of c 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 plot
  • autoscale_view: whether to scale the axes to the extents of the plot. Default True.
  • **kwargs: (optional) kwargs which will be passed to matplotlib LineCollection constructor.

Metadata

Release files for rainbowline 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rainbowline 0.0.1
File Size Uploaded
rainbowline-0.0.1.tar.gz 57.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rainbowline 0.0.1
File Interpreter ABI Platform
rainbowline-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 62.0 kB

Release files / rainbowline-0.0.1.tar.gz

Download URL rainbowline-0.0.1.tar.gz
Size 57.8 kB
Tags Source
SHA-256 checksum
How to use checksums
02b402472d763a48b2ffd88f387e974b5340f5e94ac257144e18004080b51ee0
BLAKE2b-256 checksum
How to use checksums
74b5fd14cea51bf7ce76b8c09a23c72d7017d4d7ef84b02c2043a70f1bd25f8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.8

Release files / rainbowline-0.0.1-py3-none-any.whl

Download URL rainbowline-0.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b734802350e796fe7799d3ef0be41966595536d9d3f860079db3f7192aaaf936
BLAKE2b-256 checksum
How to use checksums
078e274094745cf38263f326f08725efe11e163c37de882fded18939e0e3bcb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page