Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

https://www.geeksforgeeks.org/matplotlib-axes-axes-cla-in-python/

# Implementation of matplotlib function
import numpy as np
import matplotlib.pyplot as plt
  
np.random.seed(19)
data = np.random.random((5, 10, 10))
  
fig, ax = plt.subplots()
  
for i in range(len(data)):
    ax.cla()
    ax.imshow(data[i])
    ax.set_title("Axes {}".format(i))
    plt.pause(0.1)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+6 =