How to label Positive and negative x-axis using set_xlabel?

前端 未结 1 1670
南笙
南笙 2020-12-12 07:18

In the following code I have created 4 axis. Positive and negative x and y axis. I want to label positive x-axis as c1,negative x-axis as c2, positive y-axis as h1 and negat

相关标签:
1条回答
  • 2020-12-12 07:57

    You can use matplotlib.pyplot.text(x, y, s, fontdict=None, withdash=False, **kwargs) to write text at a specified location on your graph. x and y correspond to the location of the string, s is the string.

    0 讨论(0)
提交回复
热议问题