Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
I am finding that annotations placed outside of axes get placed incorrectly in v1.4.3. Here is an example:
import matplotlib.pyplot as pltimport matplotlib as mplfig, ax = plt.subplots()ax.annotate('+ pts', xytext = [40, 20], textcoords = 'axes points', \ xy = [40, 20], xycoords = 'axes points', fontsize = 32)ax.annotate('- pts', xytext = [40, -20], textcoords = 'axes points', \ xy = [40, -20], xycoords = 'axes points', fontsize = 32)ax.annotate('+ frac', xytext = [0.5, 0.1], textcoords = 'axes fraction', \ xy = [0.5, 0.1], xycoords = 'axes fraction', fontsize = 32)ax.annotate('- frac', xytext = [0.5, -0.1], textcoords = 'axes fraction', \ xy = [0.5, -0.1], xycoords = 'axes fraction', fontsize = 32)plt.savefig('test' + mpl.__version__ + '.png')
In matplotlib v1.4.2 the plot looks like this:
In matplotlib v1.4.3 the plot looks like this:
Apparently v1.4.3 takes a negative axes fraction (or points) and wraps it around to the top of the axes.