Matplotlib - Interactive Features
Identify the error in this code that prevents hover labels from showing:
import matplotlib.pyplot as plt import mplcursors fig, ax = plt.subplots() line, = ax.plot([1, 2, 3], [4, 5, 6]) mplcursors.cursor(line) plt.show()
