0

In my python code I create a function to draw a vertical line by clicking on plot that draw by matplotlib and show intersection Y value by annotate in plot. but the annotate bbox and text is placed under the plot lines. How can I made it over the plot line? Here is annotate code:

self.axes.annotate(f'power: {power}', xy=(rpm, power), ha = 'left',
                    xytext = (20,-20), textcoords = 'offset points', va = 'top',
                     bbox = dict(boxstyle='round,pad=0.5', fc='b', alpha=0.1),
                     arrowprops = dict(arrowstyle='->', connectionstyle='arc3,rad=0'))

and in the picture below you can see the power bbox is under the plot line. enter image description here

RamiN
  • 11
  • 6

0 Answers0