After plotting financial data, I would like to get the current X and Y axes values, in order to plot, for instance, an additional arrow.
So far I got pretty close; lets say the figure is stored in "plt"
If we do:
plt.gca().get_xticks()
plt.gca().get_yticks()
We get the ticks currently drawn in the figure:
[ 732000., 732020., 732040., 732060., 732080., 732100., 732120., 732140., 732160.]
[ 0.9 , 0.91, 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98]
But how could we get the coordinates of, for instance, the last visible bar? and of the previous one?