Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Matplotlib’s Animation Library for Smoother Graph Updates in Real-Time Detection #113

Open
Anushka-Pote opened this issue Nov 9, 2024 · 0 comments

Comments

@Anushka-Pote
Copy link
Contributor

Description:
The current graph updating mechanism in run_detection() uses a manual while loop and plt.pause, which may lead to less smooth animations and may not fully utilize Matplotlib’s capabilities for real-time plotting. Replacing this with Matplotlib's FuncAnimation library will streamline the process and make the updates more visually appealing and efficient.

Solution:
Refactor run_detection() to use FuncAnimation to update the PERCENTAGE_CHEAT data in real-time. This will make the graph smoother and more efficient by reducing redundant code and taking advantage of Matplotlib’s optimized animation methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants