Skip to main content

MPSPlots

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

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.3
File Size Uploaded Provenance Actions
mpsplots-1.9.3.tar.gz 1.4 MB Without provenance Details for mpsplots-1.9.3.tar.gz

Built distribution (wheel)

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

Total release size: 2.8 MB

Release files / mpsplots-1.9.3.tar.gz

Download URL mpsplots-1.9.3.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
4c38b94d989324626266b7c6127b5e99df167b94f0f6ababe853b0ded62f36f0
BLAKE2b-256 checksum
How to use checksums
ea0fe3b4dcbb61d14b1f137ed1d6dde945cd5711705a2ad51f2f959c9cc77828
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.3-py3-none-any.whl

Download URL mpsplots-1.9.3-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f42982108e670af4469cb82658250710109553b5d4d2a0566c801d08301a1e1a
BLAKE2b-256 checksum
How to use checksums
7cb0fdef2c55790c85326ba1ddbec3599cf28150a509aa59835f4491b6f61bf5
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.3

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