I am plotting 3D data and used these
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
Spyder shows a warning (but plotting works fine)
"mpl_toolkits.mplot3d.Axes3D" imported but unused.
If I don't import, I get an error when I run the .py file.
ValueError: Unknown projection '3d'
Why is this module required when it is not being used.