![9837ab7fa47d05be1489b7298b5976d3.png](https://img-blog.csdnimg.cn/img_convert/9837ab7fa47d05be1489b7298b5976d3.png)
大致看了下官方文档,其内容上一篇大部分都讲过了,这里只讲一些上节没讲到的地方:
1>将图中的网格线去掉不显示。
fig.update_xaxes(showgrid=False, # 将网格线去掉
zeroline=False) # 将0对应的那条线也去掉
fig.update_yaxes(showgrid=False, zeroline=False)
fig.show()
![18c34d5c8b9151563db09e130b3ef2e7.png](https://img-blog.csdnimg.cn/img_convert/18c34d5c8b9151563db09e130b3ef2e7.png)
2>图 四周都加个黑粗线 画地为牢:
fig.update_xaxes(showline=True, linewidth=2,
linecolor='black', # 将颜色设定为黑色
mirror=True) # 加上这个 四周都是黑色 ,不加的话只有左下两条线黑色 (就是镜像过去)