Temat: [MIG] Problem z wizualizerem
Czy komuś działa graficzny wizualizer?
Jak odpalam pod ubuntu to pojawiają się komunikaty:
visualise.py:58: UserWarning: frames=None which we can infer the length of, did not pass an explicit *save_count* and passed cache_frame_data=True. To avoid a possibly unbounded cache, frame data caching has been disabled. To suppress this warning either pass `cache_frame_data=False` or `save_count=MAX_FRAMES`.
ani = animation.FuncAnimation(fig, update, interval=200)
visualise.py:59: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
venv/lib/python3.12/site-packages/matplotlib/animation.py:908: UserWarning: Animation was deleted without rendering anything. This is most likely not intended. To prevent deletion, assign the Animation to a variable, e.g. `anim`, that exists until you output the Animation using `plt.show()` or `anim.save()`.
warnings.warn(
I pomimo prób fixowania nie jestem w stanie zmusić go do działania.
EDIT: To jakiś problem z moim laptopem, dołożenie
"matplotlib.use('TkAgg')"
i doinstalowanie tkintera rozwiązało sprawę.
Jak odpalam pod ubuntu to pojawiają się komunikaty:
visualise.py:58: UserWarning: frames=None which we can infer the length of, did not pass an explicit *save_count* and passed cache_frame_data=True. To avoid a possibly unbounded cache, frame data caching has been disabled. To suppress this warning either pass `cache_frame_data=False` or `save_count=MAX_FRAMES`.
ani = animation.FuncAnimation(fig, update, interval=200)
visualise.py:59: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
venv/lib/python3.12/site-packages/matplotlib/animation.py:908: UserWarning: Animation was deleted without rendering anything. This is most likely not intended. To prevent deletion, assign the Animation to a variable, e.g. `anim`, that exists until you output the Animation using `plt.show()` or `anim.save()`.
warnings.warn(
I pomimo prób fixowania nie jestem w stanie zmusić go do działania.
EDIT: To jakiś problem z moim laptopem, dołożenie
"matplotlib.use('TkAgg')"
i doinstalowanie tkintera rozwiązało sprawę.
U mnie leci tylko pierwszy warning (frames=None), a poza tym wszystko śmiga - pojawia się okienko i poprawnie animuje (choć powoli - musiałem trochę podkręcić interwały żeby zasymulować cokolwiek większego).
Trochę słaby ten wizualizer imo, u mnie działa ale tak jak u kajaka bardzo wolno, a jak próbowałem to podkręcić to zaczął się wieszać (rozumiem że były obawy o epilepsję ale ja bym dał opcjonalne flagi do przyspieszania). Napisz sobie własny wizualizer który wypisuje na konsolę, myślę że fancy wizualizacja nie jest tu super istotna.
U mnie wszystko spoko po pozmienianiu stałych w kodzie, co raczej prostsze niż pisanie od nowa.
Uważaj z tym podkręcaniem, bo epilepsji dostaniesz