Python Forum
Python animation of two sublot
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python animation of two sublot
#1
I'm triying to have an animation of two or more subplots. Actually this is the code of the subplots, i would like to have a loop animation of these two sublots.


k=5
mutual=dict((x,hf.II(data, set(['(t-'+str(k-x-i)+')' for i in range(0,k)]),set(['(t)']))) for x in range (0,k))
names = range(len(list(mutual.keys())))
values = list(mutual.values())

k=5
z=10
mutual2=dict((x,hf.II(data, set(['(t-'+str(z-x-i)+')' for i in range(0,k)]),set(['(t)']))) for x in range (0,k))
names2 = range(len(list(mutual2.keys())))
values2 = list(mutual2.values())

fig, axs = plt.subplots(2, 2, figsize=(7, 4), sharey=True)
axs[0, 0].bar(names, values)
axs[0, 1].scatter(names, values)
axs[1, 0].bar(names2, values2)
axs[1, 1].scatter(names2, values2)
fig.suptitle('Cumulative Info of   previous instants')
with this result

[Image: 2ortM.png]

but i would like to have this:

[Image: SQ9kc.gif]
Reply
#2
nothing?
Reply


Forum Jump:

User Panel Messages

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