Python-Matplotlib 19 文字
EG1
import numpy as np import matplotlib.pyplot as plt y = np.arange(-5, 6,1) plt.plot(y, y*y) plt.text(0 ,20 , 'function:y=x*x' , family='serif' , size=10 , color='b' , style='italic' , weight='black') plt.show()
EG1
import numpy as np import matplotlib.pyplot as plt y = np.arange(-5, 6,1) plt.plot(y, y*y) plt.text(0 ,20 , 'function:y=x*x' , family='serif' , size=10 , color='b' , style='italic' , weight='black') plt.show()