我想这样做:
我有这个Python代码:
import numpy as np
import pylab as plt
a = np.array([1,2,3,4,5,6,7,8,9,10])
b = np.array([7,8,6,3,2,1,5,8,4,15])
c = plt.plot(a,b,'.')
d = 5
plt.text(2,3, "d = "+d) #This line is the problem because i have not the value of d !
plt.show()
所以实际上我只想显示 d 的值,并且我想显示 d 的值,但相对地例如在右下角,但不显示某些坐标。用 Python 可以做到这一点吗?