Matplotlib: Cursor snap to plotted data with datetime axis
问题 I have a plot of 3 data sets that have datetime objetcs on the x axis. I want to have a cursor that snaps to the data and shows the precise x and y value. I already have a "snap to cursor", but that only works for scalar x axes. Can anyone help me to modify the snap to cursor so that it works for datetime x axes as well? Here are my data plots: import numpy as np import matplotlib.pyplot as plot import matplotlib.ticker as mticker import matplotlib.dates as dates import datetime import