Plotting graphs

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
piotrmichna
Posts: 7
Joined: Sat Jun 25, 2022 4:12 am

Plotting graphs

Post by piotrmichna » Sat Jun 25, 2022 4:17 am

Hello,
I would like to plott simple cartesian graphs using ESP32 board and 1.3 inch mono oled display.
Is there any suitable library similar to matplotlib in micropython?
Could anyone point me in the right direction as the information I have found so far do not work for me unfortunately.
Thank you.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Plotting graphs

Post by pythoncoder » Sat Jun 25, 2022 9:31 am

The nano-gui and micro-gui libraries support simple Catresian and polar plots.
Peter Hinch
Index to my micropython libraries.

piotrmichna
Posts: 7
Joined: Sat Jun 25, 2022 4:12 am

Re: Plotting graphs

Post by piotrmichna » Sat Jun 25, 2022 11:45 am

Thank you, this is exactly what I need!
May I ask for your advise in order to find out which pins should I connect to which?
My display has 4 of them, VDD, GND, SCK, SDA and I am using ESP32 WROOM with 38 pins.
Thanks.

piotrmichna
Posts: 7
Joined: Sat Jun 25, 2022 4:12 am

Re: Plotting graphs

Post by piotrmichna » Sat Jun 25, 2022 12:09 pm

Tried two different approaches found in the internet and both result display like pixels mix and I am sure I have got something wrong..

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Plotting graphs

Post by scruss » Sat Jun 25, 2022 5:22 pm

Make sure you're using the right OLED driver. SSD1306 and SH1106 are quite different. There are lots of choices in Awesome MicroPython: OLED

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Plotting graphs

Post by pythoncoder » Sun Jun 26, 2022 10:02 am

Those GUI's support only a subset of displays because drivers must be subclassed from FrameBuffer and meet some other simple requirements. This doc lists displays with suitable drivers.
Peter Hinch
Index to my micropython libraries.

Post Reply