Skip to main content

A library for painlessly embedding matplotlib in wxPython

Project description

Formerly at: http://agni.phys.iit.edu/~kmcivor/wxmpl/

Ken has not maintained this for a while, and is no longer at IIT.

NOTE: Perhaps maintaining this doesn’t make sense. Rather, anyone using it should port their code to wxmplot: https://pypi.org/project/wxmplot/

IIRC, wxmplot is heavier weight, but should support everything that wxmpl does – and is is still maintained

Status

This package has seen little maintenance for years.

However, it has been minimally updated to run with recent versions of Python, wxPython, and Matplotlib. It was most recently tested with:

  • Python 3.13

  • wxPython 4.2.3

  • matplotlib 3.10.3

Demo status:

plotting.py: runs fine

picking_points.py: no errors, but the point picking isn’t working

stripcharting.py: crashes out at startup

NOTE: Picking functionality is disabled / broken – it needs to be updated for modern wxPython (and maybe MPL, too)

PRs accepted!

-Chris Barker

WxMpl - Painless matplotlib embedding for wxPython

The wxmpl module provides an matplotlib FigureCanvas with user-interaction features like point-under-cursor and zooming in on a selected area. Support for creating stripcharts, plots that update as their data changes, is also included.

Documentation of the module itself is available in the`reference/’ subdirectory. An introduction to using matplotlib with WxMpl is available in the tutorial/ subdirectory. Scripts demonstrating some of matplotlib’s examples with WxMpl and plotting stripcharts data are in the demos/ subdirectory.

REQUIREMENTS

(It may work with earlier versions, but this is what it was tested on)

(Also may work for earlier versions of all of these, but that’s what’s tested.

PLATFORMS

WxMpl has been tested under Windows 10 and Mac OS 14 [wxPython > 4.2.0]. It has also reported to work on Linux – anywhere wxPython and Matplotlib work should be fine.

INSTALLATION

wxmpl is available on PyPI and conda-forge – it should be as simple as:

$ python -m pip install wxmpl

or

$ conda install -c conda-forge wxmpl

If you want to install from source, set the working dir to the wxmpl main dir, and:

$ python -m pip install ./

AVAILABILITY

Project currently being manged on gitHub here:

https://github.com/NOAA-ORR-ERD/wxmpl

AUTHOR

WxMpl was written by: Ken McIvor <mcivor@iit.edu>

Contributions from: Carlo Segre <segre@iit.edu>

Currently maintained by: Chris Barker <Chris.Barker@noaa.gov>

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

wxmpl-2.3.2.tar.gz (91.2 kB view details)

Uploaded Source

Built Distribution

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

wxmpl-2.3.2-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file wxmpl-2.3.2.tar.gz.

File metadata

  • Download URL: wxmpl-2.3.2.tar.gz
  • Upload date:
  • Size: 91.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for wxmpl-2.3.2.tar.gz
Algorithm Hash digest
SHA256 ebae9b3d720a67441eaa2d21c68e2f5571d3f7478466154d64b29733878c7856
MD5 0ef78733e04ce74fdd1c1aeb7b312328
BLAKE2b-256 a273c0fc4d74d1a54dd90e1ad0ff5a1a566a9fb07614005827e501fd1b04a0c7

See more details on using hashes here.

File details

Details for the file wxmpl-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: wxmpl-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for wxmpl-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16225d3460b514210ddddf0a850e050a38caf4a979c61d5878a4242bec03ad06
MD5 9da28069a09f32ccc86d7746b236292b
BLAKE2b-256 125e7d4647b169325afc9e767a7f67e7495400e81772fdaf8a28685239074e19

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