Skip to main content

Matplotlib Multicolored Line

CI Status Documentation Status Test coverage percentage

uv Ruff pre-commit

PyPI Version Supported Python versions License


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)

Result

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)

Result 2

Contributors ✨

Thanks goes to these wonderful people (emoji key):

34j
34j

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Copier

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)

Source distribution for matplotlib-multicolored-line 0.3.0
File Size Uploaded
matplotlib_multicolored_line-0.3.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for matplotlib-multicolored-line 0.3.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

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