Closed
Description
If I plot an axhline
first, and then two points with plot_date
, the x-axis is not rescaled to the two new data points:
import matplotlib.pyplot as plt
from datetime import datetime
fig, axs = plt.subplots(2, 1)
axs[0].axhline(1.5)
axs[0].plot([datetime(2016, 1, 1, 0, 0, 0), datetime(2016, 1, 2, 0, 0, 0)], [1, 2])
axs[1].plot([datetime(2016, 1, 1, 0, 0, 0), datetime(2016, 1, 2, 0, 0, 0)], [1, 2])
axs[1].axhline(1.5)
plt.show()
I would expect the two plots to be the same, and the plotting order not to matter.
Present on current master (2.0.0rc2.post2912+g015d8d5) and on 1.5