79288883

Date: 2024-12-17 17:42:40
Score: 1
Natty:
Report link

Just use matplotlib text function with the "data coordinates" for x and y:

mytext = 'Total: XX \n Mean: YY \n Min Value: AA \n Max Value: BB'
ax.text(x=15000, y='Radial Velocity', 
        s=mytext, style='italic', 
        color='white', bbox = {'facecolor': 'black'}, 
        fontsize=8, verticalalignment='center')
plt.show()

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rehaqds