Matplotlib Multicolored Line
Documentation: https://matplotlib-multicolored-line.readthedocs.io
Source Code: https://github.com/34j/matplotlib-multicolored-line
Plot multicolored lines in Matplotlib. Port of Multicolored lines — Matplotlib 3.10.1 documentation with slight improvements.
Installation
Install this via pip (or your favourite package manager):
pip install matplotlib-multicolored-line
Usage
import matplotlib.pyplot as plt
import numpy as np
from matplotlib_multicolored_line import colored_line
t = np.linspace(-7.4, -0.5, 200)
x = 0.9 * np.sin(t)
y = 0.9 * np.cos(1.6 * t)
fig, ax = plt.subplots()
lc = colored_line(x, y, c=t, ax=ax, linewidth=10)
fig.colorbar(lc)
y = np.random.normal(size=(5, 2))
c = np.random.normal(size=(5, 2))
fig, ax = plt.subplots()
lc = colored_line(y, c=c, ax=ax, linewidth=10)
fig.colorbar(lc)
Metadata
Release files for matplotlib-multicolored-line 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| matplotlib_multicolored_line-1.0.0.tar.gz | 7.9 kB | With provenance | Details for matplotlib_multicolored_line-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matplotlib_multicolored_line-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for matplotlib_multicolored_line-1.0.0-py3-none-any.whl |
Total release size: 15.3 kB
Release files / matplotlib_multicolored_line-1.0.0.tar.gz
| Download URL | matplotlib_multicolored_line-1.0.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34fb95e245cb38afadb9f07e7d1ed133f79e60fc02791b3ebae72e5be97d2c12
|
|
BLAKE2b-256 checksum How to use checksums |
47aeb497194b95311eaaa57ecf835bb551d97543dc9864e5ea5883b6bc98a111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / matplotlib_multicolored_line-1.0.0-py3-none-any.whl
| Download URL | matplotlib_multicolored_line-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc91ddf454ee56883bc3bee5f65fbff36094ecf1c82ba22ba1422e4367412cce
|
|
BLAKE2b-256 checksum How to use checksums |
dc746d31762c443fc084c08546397b41f0caf01364f42b24d2ee72a0284900a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for matplotlib-multicolored-line 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for matplotlib_multicolored_line-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.