小编Vic*_*ary的帖子

Figure 对象没有属性 set_title

我曾经stem_graphic绘制过茎叶图并将其保存为 pdf 但在尝试输入标题时出现错误:Figure object have no attribute set_title.

ax, b=stem_graphic(mileage['disp'])
ax.set_title("Vicky")


This is the error
Traceback (most recent call last):
File "<pyshell#214>", line 1, in <module>
ax.set_title("Vicky")
AttributeError: 'Figure' object has no attribute 'set_title'
Run Code Online (Sandbox Code Playgroud)

matplotlib figure gplots stem

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

figure ×1

gplots ×1

matplotlib ×1

stem ×1