how to plot?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
User avatar
zeeshan@microPython
Posts: 3
Joined: Sat May 18, 2019 3:02 am
Location: karachi Pakistan

how to plot?

Post by zeeshan@microPython » Sat May 18, 2019 3:16 am

i am using ESP8266 with microPython but i am new and don't know how to plot a graph plz someone help me

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

Re: how to plot?

Post by pythoncoder » Sat May 18, 2019 11:04 am

I suggest you tell us what sort of display hardware you plan to use for your graph. There are some basic polar and Cartesian graph plotting packages for the official LCD160CR display and also for OLED displays.
Peter Hinch

User avatar
zeeshan@microPython
Posts: 3
Joined: Sat May 18, 2019 3:02 am
Location: karachi Pakistan

Re: how to plot?

Post by zeeshan@microPython » Sun May 19, 2019 11:52 am

on my laptop.
as we plot in real python using matplotlib.
how can we plot on microPython , any library? if yes then kindly tell me how can intall that particular library.

User avatar
zeeshan@microPython
Posts: 3
Joined: Sat May 18, 2019 3:02 am
Location: karachi Pakistan

Re: how to plot?

Post by zeeshan@microPython » Sun May 19, 2019 11:54 am

pls tell the procedure to install library

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

Re: how to plot?

Post by pythoncoder » Sun May 19, 2019 12:14 pm

I'm not aware of any MicroPython graphics libraries for the PC. Most targets for MicroPython are microcontrollers. Most graphics libraries enable these to display on attached LCD, OLED or e-paper modules.
Peter Hinch

User avatar
jimmo
Posts: 245
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: how to plot?

Post by jimmo » Sun May 19, 2019 12:46 pm

The only thing I've seen that plots on your PC but using data from a device is https://codewith.mu/en/tutorials/1.0/plotter
But that's for the micro:bit (and possibly other boards supported by Mu) not the ESP8266.

As @pythoncoder said, please describe more about what you actually want to do.

Christian Walther
Posts: 41
Joined: Fri Aug 19, 2016 11:55 am

Re: how to plot?

Post by Christian Walther » Sun May 19, 2019 12:48 pm

Any reason why you need to use MicroPython rather than CPython (“real Python” as you call it) on the laptop? And if you do, then there is no ESP8266 involved, so why are you posting in the ESP8266 forum?

I suspect this is not what you want to do at all. Rather, I guess what you want to do is something like acquire data on the ESP8266 using MicroPython, transfer it to the laptop, and plot it there using anything (not MicroPython). Please be specific about what it is that you are trying to do.

rhubarbdog
Posts: 165
Joined: Tue Nov 07, 2017 11:45 pm

Re: how to plot?

Post by rhubarbdog » Sun Jun 02, 2019 12:44 pm

I believe what @jimmo said is sort of correct.
Mu-editor will plot results from any micropython that has USB REPL. just print your results as a tuple and Mu will plot values on the y axis and time on the x axis.

Have you tried writing your results to a file in csv format and plotting that?

Post Reply