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)
Contributors ✨
Thanks goes to these wonderful people (emoji key):
34j 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
Metadata
Release files for matplotlib-multicolored-line 0.3.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 | |
|---|---|---|---|
| matplotlib_multicolored_line-0.3.0.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matplotlib_multicolored_line-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / matplotlib_multicolored_line-0.3.0.tar.gz
| Download URL | matplotlib_multicolored_line-0.3.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30c96cf5537cf1344ea303fe6c40bdbaa5904e68ff30062e24be6ead4bd079c0
|
|
BLAKE2b-256 checksum How to use checksums |
72fad2df19404da0b4593539b655fa22fb8be64112768df70c5d8afdd4bc6c52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Apr 24, 2025.
Transparency logRelease files / matplotlib_multicolored_line-0.3.0-py3-none-any.whl
| Download URL | matplotlib_multicolored_line-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
870e0ecc1b375fee274295b283bcf769d3feba61a8c326e2c9c529935b42117e
|
|
BLAKE2b-256 checksum How to use checksums |
9ee62250f85c9bf04c755eca599094e8139949e154397d45affe44694b4307e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Apr 24, 2025.
Transparency log