如何刪除 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章