Skip to main content

plotting_backends

plotting dispatch backends

Installation

PyPI platforms PyPI version

pip install plotting_backends

Examples

functools.singledispatch

This shows how to use plotting_backends with functools.singledispatch.

import plotting_backends
from functools import singledispatch


@singledispatch
def plotting_func(
    backend: type[plotting_backends.AbstractPlottingBackend], x: Any, y: Any
) -> None: ...


@plotting_func.register
def matplotlib(
    backend: type[plotting_backends.MatplotlibBackend], x: Any, y: Any
) -> None: ...

plum (multiple dispatch)

This example shows how to use plotting_backends in conjunction with plum, a multiple dispatch library.

import plotting_backends
from plum import dispatch


@dispatch.abstract
def plotting_func(
    backend: type[plotting_backends.AbstractPlottingBackend], x: Any, y: Any
) -> None: ...


@dispatch
def plotting_func(
    backend: type[plotting_backends.MatplotlibBackend], x: Any, y: Any
) -> None: ...

Development

Actions Status ruff status

We welcome contributions!

Metadata

Release files for plotting-backends 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotting-backends 0.1.0
File Size Uploaded
plotting_backends-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plotting-backends 0.1.0
File Interpreter ABI Platform
plotting_backends-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / plotting_backends-0.1.0.tar.gz

Download URL plotting_backends-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5db1afcbc19e58bfa2ee5b42150bce656edffdcb520cee4b90f26d6b46070d52
BLAKE2b-256 checksum
How to use checksums
518195bbbd99928c92e8d52437a54e5d4c491dac07fe23dc78d958ab2b9b8dbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / plotting_backends-0.1.0-py3-none-any.whl

Download URL plotting_backends-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d9ffd7fe678ba6b10aa6e52e1d73280ef2f7b484485687c01a83e7c53686b9f
BLAKE2b-256 checksum
How to use checksums
5f0eeaedbcc4a14b38d9a530045a121013b80dc8b2f2eee8d9c490492cce1a07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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