Python Forum
Debugging live plotting data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debugging live plotting data
#1
Bug 
Hello,

i have an phyton script for live plotting data. First i send 2 arrays via 100 numbers via ble to my PC (esp32 C++). Then i handle the data in my mainscript with an modul (safe_to_excel). Here are my main script on the PC:

https://github.com/ImmanuelT8/Smart-Heal...cation3.py

This is my safe_to_excel script:

https://github.com/ImmanuelT8/Smart-Heal...o_excel.py

Here is the esp sketch in C ++ https://github.com/ImmanuelT8/Smart-Heal...linken.ino

I also plott the data live, with this script:

https://github.com/ImmanuelT8/Smart-Heal...er_live.py

But i have some trouble with the plotting. First i have an delay between the Data, second sometimes my plotting windows freeze and plott in an loop the last data. Here you see the problem in the plotting window:

https://www.youtube.com/watch?v=xSYTVeHccgg

I it will helps i can poste the text from the serial monitor.
Reply
#2
It looks like an issue with pip or the package index. Try these steps:

1. Upgrade pip and setuptools
python -m pip install --upgrade pip setuptools

2. Use a different index
pip install <package-name> --index-url https://pypi.org/simple

3. Check for typos or package name changes
Some packages may have been renamed or deprecated.

4. Try a virtual environment
python -m venv myenv
source myenv/bin/activate # Windows: myenv\Scripts\activate
pip install <package-name>

If the issue persists, checking the error message can help pinpoint the problem.
buran write Mar-12-2025, 06:58 AM:
How does your post answer OP question? It's not even remotely related.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  data input while debugging causes unwanted code completion fred1232 2 2,688 Sep-14-2025, 03:32 PM
Last Post: deanhystad
  Create simple live plot of stock data dram 2 4,572 Jan-27-2023, 04:34 AM
Last Post: CucumberNox
  [Solved] Plotting data from txt file Laplace12 1 3,100 Jul-06-2021, 07:14 AM
Last Post: Laplace12
  Plotting sum of data files using simple code Laplace12 3 5,496 Jun-16-2021, 02:06 PM
Last Post: BashBedlam
  Overwrite previous live data. Makada 2 3,759 Nov-07-2020, 07:40 PM
Last Post: Makada
  How to plot data from live datasource? Makada 14 9,560 Sep-06-2020, 07:13 PM
Last Post: Makada
  Plotting 3D Data with Custom Colorbar Gates666 0 2,537 Jul-09-2020, 10:56 AM
Last Post: Gates666
  Python animate live plotting fetching data from Mysql Table dhirajm 6 6,401 Apr-24-2020, 05:07 PM
Last Post: dhirajm
  plotting data without plt.clear() omar_mohsen 0 2,691 Jan-04-2020, 08:30 PM
Last Post: omar_mohsen
  Pulling & Reading Date from UDF that Compare it to Live Data firebird 4 4,554 Jul-20-2019, 09:30 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020