Skip to main content

Various plotting templates built on top of matplotlib

Project description

plot-misc icon

A collection of plotting functions

version: 2.1.0

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.1.0.tar.gz (135.4 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.1.0-py3-none-any.whl (141.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plot_misc-2.1.0.tar.gz
  • Upload date:
  • Size: 135.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for plot_misc-2.1.0.tar.gz
Algorithm Hash digest
SHA256 d443c8214f9617b1324427baa917f5faccedfd2d7b2b3b184d7ab00a1be216ae
MD5 2168ba103c1c67e33e49f474b2bb6b60
BLAKE2b-256 027bb57dd413d208dd824778d2a961fdafd6824b8d30b098a352a26f8563c364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plot_misc-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 141.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for plot_misc-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b6d1beff5ea96eea95477c038927f51e67b6b58284240722395f18994c60279
MD5 3c8bc324413a86203e3d327ddb5f858d
BLAKE2b-256 3f21882fa26128111599ec5a4794abe65969aef5de70959c3a60b6cf19cd936a

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