Skip to content

romilly/microplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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,
  2. demo_multi.py shows a plot of multiple sine waves,
  3. scatter_demo.py shows a scatter plot of some arbitrary data.

Bitmap saving

There's code to save bitmaps 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 and then run code like this demo

Samples

There are more sample displays along with the code used to create them

Road Map

  1. Improve the documentation
  2. Add box plots
  3. Add examples for other displays
  4. Add a Contributing guide

About

Simple MicroPython plotting package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages