A matplotlib wrapper for defered plots and plotting styles.
Project description
Testing |
|||
---|---|---|---|
Package |
|||
Meta |
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 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:
Clone the repository:
git clone https://github.com/MartinPdeS/MPSPlots.git cd MPSPlots
Install dependencies:
pip install -r requirements/requirements.txt
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:
Fork the repository and create your feature branch:
git checkout -b feature-branch
Commit your changes and push your branch:
git commit -m "Add new feature" git push origin feature-branch
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mpsplots-1.5.1.post0.tar.gz
.
File metadata
- Download URL: mpsplots-1.5.1.post0.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d6beafbaa9fdba1fe2f866933f3bd6578d6fb2353f181074235d963e1c9607 |
|
MD5 | 70fc42bb8a9a3dee24150bc0299a92f3 |
|
BLAKE2b-256 | 107d38121ce27b111dbd7e1cc9013358d7df916d7c9feb353e936f19f8ce7f1d |
File details
Details for the file MPSPlots-1.5.1.post0-py3-none-any.whl
.
File metadata
- Download URL: MPSPlots-1.5.1.post0-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f864e0b4297ffbeb0bb3f849fb11a0498336bb3a82b8187b1b40835f5da8beb7 |
|
MD5 | 0ca6e18d44411d8a49203b1131825a2c |
|
BLAKE2b-256 | 358c50e2a5dc958a6429b069d3c3999baa0f60385a67bd220ceac2788314d785 |