Skip to main content

MPSPlots

MPSPlots logo

Meta

Python

Documentation Status

Testing

Unittest Status

Unittest coverage

PyPi

PyPi package

PyPi version

Anaconda

Anaconda version

Anaconda downloads

Overview

MPSPlots is a personal plotting library developed as a streamlined wrapper around two popular visualization tools: Matplotlib for 2D plotting and PyVista for 3D visualization. This library was created with the goal of balancing ease-of-use with flexibility, allowing users to produce consistent plots for scientific publications. Initially developed to standardize the author’s scientific plots, MPSPlots continues to evolve, providing a customizable yet simple interface for a wide range of plotting needs.

Key Features: - Intuitive and straightforward API, abstracting common plotting tasks. - High-quality outputs tailored for scientific journals. - Seamless integration with Matplotlib and PyVista. - Easily customizable plots without sacrificing flexibility.

The motivation behind this library was to make complex plotting routines more accessible while maintaining the ability to fine-tune results as needed, making it ideal for researchers and scientists who require consistent, publication-ready plots.


Installation

To install the library from PyPI, simply use pip, or conda:

pip install MPSPlots
conda install --channels martinpdes mpsplots

For a development version, clone the GitHub repository and install the dependencies manually:

git clone https://github.com/MartinPdeS/MPSPlots.git
cd MPSPlots
pip install -r requirements/requirements.txt

This setup ensures that you have access to the latest updates and features under active development.


Usage

MPSPlots can be integrated into your scientific workflow with minimal effort. Here’s a simple example showing how you can create a 2D Matplotlib plot:

from MPSPlots.render2D import Scene

plot = Scene()
plot.add_line(x_data, y_data, label="Sample Line")
plot.show()

For more complex 3D visualizations using PyVista:

from MPSPlots.render3D import Scene

plot = Scene()
plot.add_surface(mesh)
plot.show()

Whether it’s a 2D line chart or a 3D surface plot, MPSPlots makes it simple to generate publication-quality visualizations quickly.


Testing and Development

If you want to contribute to the project or test it locally, follow these steps to set up your development environment:

  1. Clone the repository:

    git clone https://github.com/MartinPdeS/MPSPlots.git
    cd MPSPlots
  2. Install dependencies:

    pip install -r requirements/requirements.txt
  3. Run the tests with coverage:

    coverage run --source=MPSPlots --module pytest --verbose tests
    coverage report --show-missing

These commands will ensure that you have all the necessary dependencies and will run the tests, providing you with a detailed report on code coverage and any potential issues.


Documentation

Detailed documentation for MPSPlots is available here, where you’ll find a comprehensive guide to the library’s usage, examples, and API references. Whether you’re a beginner or an advanced user, the documentation provides clear instructions and examples to help you get the most out of the library.


Contributing

MPSPlots is an open-source project under continuous development, and contributions are welcome! Whether it’s bug fixes, new features, or improvements to documentation, any help is appreciated. If you’re interested in collaborating, please feel free to reach out to the author.

If you’d like to contribute:

  1. Fork the repository and create your feature branch:

    git checkout -b feature-branch
  2. Commit your changes and push your branch:

    git commit -m "Add new feature"
    git push origin feature-branch
  3. Create a Pull Request on GitHub.


Contact Information

As of 2023, MPSPlots is actively maintained and open to collaboration. If you’re interested in contributing or have any questions, don’t hesitate to reach out. The author, Martin Poinsinet de Sivry-Houle, can be contacted via:

The project continues to evolve, and your contributions are encouraged!

Metadata

Release files for MPSPlots 1.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MPSPlots 1.9.6
File Size Uploaded Provenance Actions
mpsplots-1.9.6.tar.gz 13.7 kB Without provenance Details for mpsplots-1.9.6.tar.gz

Built distribution (wheel)

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

Total release size: 30.4 kB

Release files / mpsplots-1.9.6.tar.gz

Download URL mpsplots-1.9.6.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ef2e37981e63d723a6a4fd8ae4e1b25bc1063936ede88472e33708e7b7a31e2f
BLAKE2b-256 checksum
How to use checksums
201d9bab9120695faa1127136fd86abb707f0c2109cc93fd161b06107fa42f8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / mpsplots-1.9.6-py3-none-any.whl

Download URL mpsplots-1.9.6-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0ae65240780c9edf74854e6ac36b598ec50ae696904447e4803a5aedc1ddb9d
BLAKE2b-256 checksum
How to use checksums
71c95668c400b41d6df298379ac78d0b23c7c497ec58e85b8418993c7702ba92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for MPSPlots 1.9.6

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