I’m drawing a histogram and I would like to place a text box within the axes that shows the number of events. I like the way I can pass “loc=’best'” to pyplot.legend() and it automatically does its best to avoid my data. Can a new kwarg be introduced to pyplot.text() to provide the same functionality?
ax.text(0.05, 0.95, ‘Entries: ‘ + len(myData),
transform=ax.transAxes, fontsize=14, verticalalignment=’top’,