Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

rainbowline

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rainbowline

A simple library for plotting lines with color gradients

pipPyPI
Version
0.0.1
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts