Matplotlib pyplot.title(string) returns error

前端 未结 8 714
名媛妹妹
名媛妹妹 2021-01-01 10:56

When I call pyplot.title(\'some string\') it throws the exception, \'str\' object is not callable\'. I copied the following from the matplotlib onl

8条回答
  •  没有蜡笔的小新
    2021-01-01 11:13

    I've had this happen when I've previously accidentally plt.title = ''

    After that that function is no longer a function. Restarting python kernel or re-importing plt library can fix it.

    Not re-installing. Re-IMPORTING.

提交回复
热议问题