Skip to main content

A GUI with matplotlib, can use on all OS.

Project description

pltgui

Author: Dr Jie Zheng & Dr Lin-qiao Jiang v0.1 2022 v0.2 2023R

Introduction

Working with a GUI, or adding interaction in plotting, will help a lot in data analysis. However, the common GUI of Python is OS-dependent, while manually adding interactive codes is too complex. A pseudo-GUI tool is introduced in this work. It will help to add buttons/checkers in the graph and assign callback functions to them. The remaining problem is that the documents in this package are in Chinese and will be in English in the next version. This program is published to the PyPI, and can be installed by 'pip install pltgui'.

This package provides a button class and a button controller nager class. A button will be drawn on a specified position with a specified size, text and color. A callback function as the click event handler can be bind to the button. The button controller will help to adjust the axes, and control the message loop, call the event handler when the button is clicked.

Since we are using the native matplotlib plotting, it is OS-independent. Programs using this package has same behaviour on macOS, Linux, and Windows.

一个用matplotlib画按钮到图形界面,用于在科学图像绘制之外额外增加互动操作功能。 目前很简单,只提供了按钮,以及按钮的颜色等(可以当复选框用)。

由于使用matplotlib,而不是专门的图形界面,因此可以在任何具有交互能力的操作系统上使用, 经过实测,在macOS,Linux,Windows上均可以很好地实现互动操作。

Sample 范例

See sample.py and sample-calc.py.

sample.pysample-calc.py

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

pltgui-0.32.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

pltgui-0.32-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pltgui-0.32.tar.gz.

File metadata

  • Download URL: pltgui-0.32.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pltgui-0.32.tar.gz
Algorithm Hash digest
SHA256 83a79dd9cc5f1f09bfa9755e389faee5fab44f910ec9a41638e6848bdd158d9a
MD5 aea2dcfbdfdf33bf807e30e7dcbce18a
BLAKE2b-256 cf5d00940418b4a658ddc0c12c605f63b81e483ceef44a4e74f42015c7638ce8

See more details on using hashes here.

File details

Details for the file pltgui-0.32-py3-none-any.whl.

File metadata

  • Download URL: pltgui-0.32-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pltgui-0.32-py3-none-any.whl
Algorithm Hash digest
SHA256 84c0732ec4df665e3d9ae080c8a69458c07e09fb1834f510e2c16888f2924c9c
MD5 7f817bbd96eea54c7c9aa48c79289a5f
BLAKE2b-256 16b577d988ccd086951b891fe49bdf054760a00238283301a2e709a4b21ec28b

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