Page 1 of 1

Plotting graphs

Posted: Sat Jun 25, 2022 4:17 am
by piotrmichna
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.

Re: Plotting graphs

Posted: Sat Jun 25, 2022 9:31 am
by pythoncoder
The nano-gui and micro-gui libraries support simple Catresian and polar plots.

Re: Plotting graphs

Posted: Sat Jun 25, 2022 11:45 am
by piotrmichna
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.

Re: Plotting graphs

Posted: Sat Jun 25, 2022 12:09 pm
by piotrmichna
Tried two different approaches found in the internet and both result display like pixels mix and I am sure I have got something wrong..

Re: Plotting graphs

Posted: Sat Jun 25, 2022 5:22 pm
by scruss
Make sure you're using the right OLED driver. SSD1306 and SH1106 are quite different. There are lots of choices in Awesome MicroPython: OLED

Re: Plotting graphs

Posted: Sun Jun 26, 2022 10:02 am
by pythoncoder
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.