Installation & Testing
Install the current release of matplotlib_set_diagrams with:
pip install matplotlib_set_diagrams
To upgrade to a newer version, use the --upgrade flag:
pip install --upgrade matplotlib_set_diagrams
If you do not have permission to install software systemwide, you can install into your user directory using the –user flag:
pip install --user matplotlib_set_diagrams
Alternatively, you can manually download matplotlib_set_diagrams from GitHub or PyPI. To install one of these versions, unpack it and run the following from the top-level source directory using the terminal:
pip install .
For automated testing, install the additional dependencies required for testing using:
pip install matplotlib_set_diagrams[tests]
The test suite extensively uses baseline images to assert correctness. Unfortunately, these are dependent on the local Matplotlib configuration and the available fonts, and hence have to be user-generated. Make sure to generate the baseline images before making changes to the source code:
pytest --mpl-generate-path=tests/baseline
The full test suite can then be executed by running the following from the top-level source directory using the terminal:
pytest --mpl