Page 1 of 1

how to plot?

Posted: Sat May 18, 2019 3:16 am
by zeeshan@microPython
i am using ESP8266 with microPython but i am new and don't know how to plot a graph plz someone help me

Re: how to plot?

Posted: Sat May 18, 2019 11:04 am
by pythoncoder
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.

Re: how to plot?

Posted: Sun May 19, 2019 11:52 am
by zeeshan@microPython
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.

Re: how to plot?

Posted: Sun May 19, 2019 11:54 am
by zeeshan@microPython
pls tell the procedure to install library

Re: how to plot?

Posted: Sun May 19, 2019 12:14 pm
by pythoncoder
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.

Re: how to plot?

Posted: Sun May 19, 2019 12:46 pm
by jimmo
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.

Re: how to plot?

Posted: Sun May 19, 2019 12:48 pm
by Christian Walther
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.

Re: how to plot?

Posted: Sun Jun 02, 2019 12:44 pm
by rhubarbdog
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?