如何删除 matplotlib 中的顶部和右侧轴? - How can I remove the top and right axis in matplotlib?

问题:

Instead of the default "boxed" axis style I want to have only the left and bottom axis, ie:而不是默认的“盒装”轴样式,我只想拥有左轴和底轴,即:

+------+         |
|      |         |
|      |   --->  |
|      |         |
+------+         +-------

This should be easy, but I can't find the necessary options in the docs.这应该很容易,但我在文档中找不到必要的选项。


解决方案:

参考一: https://en.stackoom.com/question/3sdk
参考二: https://stackoom.com/question/3sdk
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章