Skip to main content

MatplotKit

MatplotKit is a lightweight Python library designed to enhance Matplotlib with additional features and utilities, making data visualization more convenient and elegant.

Features

  • ✨ Decorators for Plot Functions

    • @with_axes decorator automatically handles axes creation
    • Simplifies plot function implementation
    • Customizable figure size support
  • 📊 Enhanced Annotations

    • Easy-to-use diagonal line addition
    • More annotation utilities coming soon
  • 📈 Taylor Diagram Support

    • Comprehensive implementation of Taylor diagrams
    • Perfect for model evaluation and comparison
    • Customizable styling options

Installation

Install MatplotKit using pip:

pip install matplotkit

Quick Start

Here's a simple example of using MatplotKit:

import matplotlib.pyplot as plt
from matplotkit import with_axes, add_diagonal_line

# Using the decorator to automatically handle axes
@with_axes(figsize=(8, 6))
def scatter_plot(x, y, ax=None):
    ax.scatter(x, y)
    # Add a diagonal line with custom style
    add_diagonal_line(ax, color='red', linestyle='--', alpha=0.5)
    return ax

# Your plotting code
x = [1, 2, 3, 4, 5]
y = [1.1, 2.2, 2.9, 4.1, 5.2]
scatter_plot(x, y)
plt.show()

Requirements

  • Python >= 3.8.1
  • Matplotlib ~3.0

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Shuang (Twist) Song

Citation

If you use MatplotKit in your research, please cite it as:

@software{matplotkit2024,
  author = {Song, Shuang},
  title = {MatplotKit: Enhanced Matplotlib Utilities},
  year = {2024},
  publisher = {GitHub},
  url = {https://github.com/SongshGeo/matplotkit}
}

Metadata

Release files for matplotkit 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 matplotkit 0.3.0
File Size Uploaded Provenance Actions
matplotkit-0.3.0.tar.gz 307.1 kB Without provenance Details for matplotkit-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 316.4 kB

Release files / matplotkit-0.3.0.tar.gz

Download URL matplotkit-0.3.0.tar.gz
Size 307.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ad9d41b906e35ca95b602d02fa490209373779662c7b7ae8a0bd2283ee0b18c8
BLAKE2b-256 checksum
How to use checksums
60eaa49e1b917c358e645081386812007d7528cc97e93696209f057084345f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / matplotkit-0.3.0-py3-none-any.whl

Download URL matplotkit-0.3.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31bbd4eea0c6e24d49627abef7f8a5c62c7273231111096ea37db9d3f69b43de
BLAKE2b-256 checksum
How to use checksums
06970b7c2fea738ac6b744d1da4a58f96d85b223def91ce9bec4b55dd4d59400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for matplotkit 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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