小编aaa*_*aaa的帖子

matplotlib边框宽度

我使用matplotlib 0.99.

我无法改变边框的宽度,subplot我该怎么办呢?

代码如下:

fig = plt.figure(figsize = (4.1, 2.2))
ax = fig.add_subplot(111)

ax.patch.set_ linewidth(0.1) 
ax.get_frame().set_linewidth(0.1) 
Run Code Online (Sandbox Code Playgroud)

最后两行不起作用,但以下工作正常:

legend.get_frame().set_ linewidth(0.1)
Run Code Online (Sandbox Code Playgroud)

python border matplotlib width

20
推荐指数
3
解决办法
3万
查看次数

标签 统计

border ×1

matplotlib ×1

python ×1

width ×1