October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following are the steps to implement the required logic:
fig = plt.figure(figsize=(5,5), dpi=50)ax = fig.add_axes([0, 0, 1, 1], frameon=False)
images = []image1 = imshow(imread("monet.png"), animated=True)images.append([image1])image2 = imshow(imread("louvre_small.png"), animated=True)images.append([image2])image3 = imshow(imread("vangogh.png"), animated=True)images.append([image3])image4 = imshow(imread("persepalis.png"), animated=True)images.append([image4])
ani = ArtistAnimation(fig, images, interval=1000, blit=False, repeat=True, repeat_delay=2500)
Read now
Unlock full access