Moving objects in matplotlib animation

Опубликовано: 09 Декабрь 2021
на канале: J O
1,349
7

Link to git repo:
https://github.com/johanoxenstierna/m...

10:30 set_extent()
14:00 set_tranform()
19:20 warpAffine()

I've only managed to get blitting working when the "im_ax" drawables is a list. But if one has to "remove" an ax object each frame (e.g. to use "imshow") a list can be a bit inconvenient. One way to fix it (for larger animation projects), is to have a variable which gives the index inside the "im_ax" where an object is located (index_in_im_ax). Then one can loop through those objects, then for each object check its index_in_im_ax, "del" it and then "insert" it back at its index_in_im_ax, once the object has been redrawn.


На этой странице сайта вы можете посмотреть видео онлайн Moving objects in matplotlib animation длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь J O 09 Декабрь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,349 раз и оно понравилось 7 зрителям. Приятного просмотра!