Skip to main content

mplpanel

mplpanel is a wx.Panel that makes it easy to use matplotlib plot in wxPython application.

  1. Install
$ pip install mplpanel
  1. Usage
# step 1: derive a class from MPLPanel
import matplotlib
matplotlib.use('module://path.to.demo_backend')
class DemoPanel(MPLPanel):
    ...

# step 2: create a backend, e.g,. to provide some helper functions
...
def new_figure_manager(num, *args, **kwargs):
    ...
    from .demo_panel import DemoPanel
    FigureClass = kwargs.pop('FigureClass', Figure)
    thisFig = FigureClass(*args, **kwargs)

    return DemoPanel.AddFigure('Figure %d' % num, num, thisFig)
...

# step 3: create a figure
...
import matplotlib.pyplot as plt

class MainFrame(wx.Frame):
    ...
    def __init__(self, parent, **kwargs):
        ...
        plt.figure()
...

Check the demo for details.

Metadata

Release files for mplpanel 0.2.4

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

Source distribution (sdist)

Source distribution for mplpanel 0.2.4
File Size Uploaded Provenance Actions
mplpanel-0.2.4.tar.gz 42.3 kB Without provenance Details for mplpanel-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mplpanel 0.2.4
File Interpreter ABI Platform Actions
mplpanel-0.2.4-py3-none-any.whl Python 3 none any Details for mplpanel-0.2.4-py3-none-any.whl

Total release size: 82.5 kB

Release files / mplpanel-0.2.4.tar.gz

Download URL mplpanel-0.2.4.tar.gz
Size 42.3 kB
Tags Source
SHA-256 checksum
How to use checksums
218e60178031d2607e46c6b518055508ecd3c5e76c25c5199f75e5e915771a54
BLAKE2b-256 checksum
How to use checksums
f219d3c7e266e0f6010a2e338b8fbfc07ace2f604841c34b7454da2587048ca4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / mplpanel-0.2.4-py3-none-any.whl

Download URL mplpanel-0.2.4-py3-none-any.whl
Size 40.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd41978c1c26992be566f73f8e545eaeb1e9498a426e684d20059839be5d5574
BLAKE2b-256 checksum
How to use checksums
f1ea06cb475e43ae2f21d8369ce1c607bd70b418d05d151ad2038d1c29b84c1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Security for mplpanel 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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