Skip to main content

A Python library for enhancing Matplotlib with additional features.

Project description

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}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matplotkit-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matplotkit-0.1.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file matplotkit-0.1.2.tar.gz.

File metadata

  • Download URL: matplotkit-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Darwin/24.0.0

File hashes

Hashes for matplotkit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 27501add406f3c57555e20c98680afe54982b82ca52768f526fddc937464ce55
MD5 a94e6a413d3b21afa89eafb1fa6bc26a
BLAKE2b-256 0e6fb8f1d0ca10fe64f6494b6231b8dca907e69a216f2d83661ca0db89a5f301

See more details on using hashes here.

File details

Details for the file matplotkit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: matplotkit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Darwin/24.0.0

File hashes

Hashes for matplotkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a21d5c936906adc4a1411ba286a8dced013843e08c398e733287df731539f4bd
MD5 97af446c9072a13d8932692827951289
BLAKE2b-256 258b0317bd014795c214939417c693e0ef30fc887651d00013d004e432d29f00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page