Skip to main content

Various plotting templates built on top of matplotlib

Project description

A collection of plotting functions

version: 2.0.3

This repository collects plotting modules written on top of matplotlib. The functions are intended to set up light-touch, basic illustrations that can be customised using the standard matplotlib interface via axes and figures. Functionality is included to create illustrations commonly used in medical research, covering forest plots, volcano plots, incidence matrices/bubble charts, illustrations to evaluate prediction models (e.g. feature importance, net benefit, calibration plots), and more.

The documentation for plot-misc can be found here.

Installation

The package is available on PyPI, and conda, with the latest source code available on gitlab.

Installation using PyPI

To install the package from PyPI, run:

pip install plot-misc

This installs the latest stable release along with its dependencies.

Installation using conda

A Conda package is maintained in my personal Conda channel. To install from this channel, run:

conda install afschmidt::plot_misc

Installation using gitlab

If you require the latest updates, potentially not yet formally released, you can install the package directly from GitLab.

First, clone the repository and move into its root directory:

git clone git@gitlab.com:SchmidtAF/plot-misc.git
cd plot-misc

Install the dependencies:

# From the root of the repository
conda env create --file ./resources/conda/envs/conda_create.yaml

To add to an existing environment use:

# From the root of the repository
conda env update --file ./resources/conda/envs/conda_update.yaml

Next the package can be installed:

python -m pip install .

Or for an editable (developer) install run the command below from the root of the repository. The difference with this is that you can just run git pull to update repository, or switch branches without re-installing:

python -m pip install -e .

Validating the package

After installing the package from GitLab, you may wish to run the test suite to confirm everything is working as expected:

# From the root of the repository
pytest tests

Usage

Please have a look at the examples in resources for some possible recipes.

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

plot_misc-2.0.3.tar.gz (126.3 kB view details)

Uploaded Source

Built Distribution

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

plot_misc-2.0.3-py3-none-any.whl (131.5 kB view details)

Uploaded Python 3

File details

Details for the file plot_misc-2.0.3.tar.gz.

File metadata

  • Download URL: plot_misc-2.0.3.tar.gz
  • Upload date:
  • Size: 126.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for plot_misc-2.0.3.tar.gz
Algorithm Hash digest
SHA256 b75bd411314efa5f3ed1d48ad2d475fd2dbb1747506987e1286353d99fe9d268
MD5 145d9836fa070c1bb7b3afcc8446183b
BLAKE2b-256 de93b968fbfa55163b0c8dc89ccefe480c3df9c2e940c60ecb3e28e70bc3208b

See more details on using hashes here.

File details

Details for the file plot_misc-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: plot_misc-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 131.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for plot_misc-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eddc7fd003ef42486911cd7cc053715f1b5ab3878f1592e2a772af93e32fbca2
MD5 e5d70a70ae7280355c8cb63cdcfe2f8c
BLAKE2b-256 38cdae6c5947d95800c1b9a33ba45aae63fc208baff0313a5a06cf559a56eae4

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