Tiz*_*tto 25 matplotlib python-3.x
我在 matplotlib.pyplot 中注意到了一些我无法理解的奇怪行为
当我调用 ylabel 方法时,我得到 TypeError ,如下所示。xlabel 方法不会发生这种情况。那里的字符串值是 find 和我的情节打印。
我错过了什么?
TypeError Traceback (most recent call last)
<ipython-input-85-5a3cfeebed52> in <module>()
4 plt.grid(False)
5 #plt.ylabel('Relative Search Freq')
----> 6 plt.ylabel('This is the Y Label')
7 plt.xlabel('This is the X Label')
8 plt.legend()
TypeError: 'str' object is not callable
Run Code Online (Sandbox Code Playgroud)
该图确实打印但没有 ylabel 或错误后的任何代码,这似乎是正常行为。
| 归档时间: |
|
| 查看次数: |
30835 次 |
| 最近记录: |