Matplotlib - Performance and Large Data
Find the bug in this code:
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 5, 5000)
y = np.cos(x)
plt.plot(x, y, downsample='max')
plt.show()The plot shows no downsampling effect. Why?
Find the bug in this code:
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 5, 5000)
y = np.cos(x)
plt.plot(x, y, downsample='max')
plt.show()The plot shows no downsampling effect. Why?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions