我只想了解最后 4 個條目
plt.gca().get_children()
是。我知道第一個文本是情節標簽,但不知道其他兩個是什么。我看過別處,似乎它們總是位于 0,1 和 1,1。最后,我假設最后一個矩形實際上是在 Axes 中放置/繪制所有內容的“表面”。
[<matplotlib.lines.Line2D at 0x7fa18484dba8>,
<matplotlib.spines.Spine at 0x7fa1848992b0>,
<matplotlib.spines.Spine at 0x7fa1848994e0>,
<matplotlib.spines.Spine at 0x7fa1848996d8>,
<matplotlib.spines.Spine at 0x7fa1848998d0>,
<matplotlib.axis.XAxis at 0x7fa184899a90>,
<matplotlib.axis.YAxis at 0x7fa184824860>,
<matplotlib.text.Text at 0x7fa1848c2a58>,
<matplotlib.text.Text at 0x7fa1848c2c50>,
<matplotlib.text.Text at 0x7fa1848c24e0>,
<matplotlib.patches.Rectangle at 0x7fa1848c2518>]
我在這里(
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/398884.html
標籤:Python matplotlib 轴
上一篇:顏色條刻度值和標簽不匹配
下一篇:旋轉3d曲面圖時散點消失
