how to plot?
- zeeshan@microPython
- Posts: 3
- Joined: Sat May 18, 2019 3:02 am
- Location: karachi Pakistan
how to plot?
i am using ESP8266 with microPython but i am new and don't know how to plot a graph plz someone help me
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: how to plot?
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
Index to my micropython libraries.
Index to my micropython libraries.
- zeeshan@microPython
- Posts: 3
- Joined: Sat May 18, 2019 3:02 am
- Location: karachi Pakistan
Re: how to plot?
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.
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.
- zeeshan@microPython
- Posts: 3
- Joined: Sat May 18, 2019 3:02 am
- Location: karachi Pakistan
Re: how to plot?
pls tell the procedure to install library
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: how to plot?
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
Index to my micropython libraries.
Index to my micropython libraries.
Re: how to plot?
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.
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.
-
- Posts: 169
- Joined: Fri Aug 19, 2016 11:55 am
Re: how to plot?
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.
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.
-
- Posts: 168
- Joined: Tue Nov 07, 2017 11:45 pm
Re: how to plot?
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?
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?
-
- Posts: 7
- Joined: Sat Jun 25, 2022 4:12 am
Re: how to plot?
Hi guys,
This is something which interests me too.
Got ESP32 board and 1.3 inch display. Since you have started to talk this thread are they any new libraries for plotting simple graphs?
Struggling to find it myself..
This is something which interests me too.
Got ESP32 board and 1.3 inch display. Since you have started to talk this thread are they any new libraries for plotting simple graphs?
Struggling to find it myself..
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact: