Home > Software engineering >  Using plt.annotate() , how to adjust arrow color
Using plt.annotate() , how to adjust arrow color

Time:01-13

I want to add some annotations and arrows to my plots using Test Line Chart

How do I change the arrow color and other parameters to also match the Text? In this case I changed the text color to red.

Thanks for the help!

CodePudding user response:

In arrowprops you should be able to set arrow color and other properties , something like this:

    arrowprops=dict(arrowstyle= '->',
                         color='red',
                         lw=3,
                         ls='--')
  •  Tags:  
  • Related