GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - romilly/microplot: Simple MicroPython plotting package

BranchesTags
Open more actions menu

Latest commit

 

History

50 Commits
50 Commits

Folders and files

NameName
Last commit message
Last commit date
docs/img
docs/img
 
 
external
external
 
 
plan
plan
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SAMPLES.md
SAMPLES.md
 
 
demo-color24.bmp
demo-color24.bmp
 
 

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

Readme
License
Activity

Stars

24 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.