Home > other >  Default Matplotlib Axes children
Default Matplotlib Axes children

Time:12-30

I just want to understand what the last 4 entries of

plt.gca().get_children()

are. I know the first text is the plot label, but don't know what the other two are. I've looked elsewhere and it seems that they are always located at 0,1 and 1,1. Lastly, I am asuming that the last rectangle is actually the "surface" where everything is placed/plotted in the 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>]

I saw examples of this in here (left and right title

  • Related