Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romilly/microplot
Simple MicroPython plotting package
https://github.com/romilly/microplot
Last synced: about 2 months ago
JSON representation
Simple MicroPython plotting package
- Host: GitHub
- URL: https://github.com/romilly/microplot
- Owner: romilly
- License: other
- Created: 2021-02-20T14:58:49.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T11:28:00.000Z (almost 4 years ago)
- Last Synced: 2024-08-05T00:07:04.596Z (5 months ago)
- Language: Python
- Homepage:
- Size: 13.9 MB
- Stars: 20
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - microplot - Simple MicroPython plotting package. (Libraries / Display)
README
# microplot
## A simple MicroPython plotting package.
The current version runs on the Raspberry Pi Pico with the Pimoroni Pico Explorer base, the Adafruit Clue and
Adafruit PyPortal.It does Line plots amd Scatter plots at the moment.
Some code was copied from https://www.instructables.com/Raspberry-Pi-Pico-Pico-Explorer-Workout/
- Tony Goodhew's great introduction to the Pico Explorer.The line drawing uses code from https://github.com/encukou/bresenham
Copyright © 2016 Petr Viktorin![Sample Plot](docs/img/sine3.jpg)
## Installation
On all platforms, copy the Python files in `src/microplot/shared` to the device.
Then copy plotter.py from `src/micorplot/explorer` if you're using the Pomoroni explorer,
or from `src/microplot/adafruit` if you're using one f the Adafruit devices.## Quick Start
There are three demos you can run:
1. `demo.py` shows a single-line plot of a sine wave,
1. `demo_multi.py` shows a plot of multiple sine waves,
1. `scatter_demo.py` shows a scatter plot of some arbitrary data.## Bitmap saving
There's [code to save bitmaps](src/microplot/explorer/bitmapsaver.py) from the Pico Explorer Base.
To save bitmaps on the PyPortal you'll need to use a patched version of Adafruit's bitmap saver available
[here](src/microplot/adafruit/adafruit_bitmapsaver.py) and then run code like [this demo](src/microplot/adafruit/code.py)## Samples
There are more [sample displays](SAMPLES.md) along with the code used to create them
## Road Map
1. Improve the documentation
1. Add box plots
1. Add examples for other displays
1. Add a *Contributing* guide