VOOZH about

URL: https://www.geeksforgeeks.org/python/matplotlib-axis-tick-get_children-in-python/

⇱ Matplotlib.axis.Tick.get_children() in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Matplotlib.axis.Tick.get_children() in Python

Last Updated : 21 Apr, 2022

matplotlib.axis.Tick.get_children() Function in axis module of matplotlib library is used to get the list of the child Artists of this Artist. 

Syntax: Tick.get_children(self) 
Parameters: This method does not accepts any parameter. 
Return value: This method return the list of the child Artists of this Artist. 

Below examples illustrate the matplotlib.axis.Tick.get_children() function in matplotlib.axis:

Example 1: 

Output: 

👁 Image
 
First 10 child Artists of this Artist 

<matplotlib.collections.PolyCollection object at 0x0AF49930>
Spine
Spine
Spine
Spine
XAxis(80.0,52.8)
YAxis(80.0,52.8)
Text(0.5, 1.0, '')
Text(0.0, 1.0, '')
Text(1.0, 1.0, '')

Example 2: 

Output: 

👁 Image
 
Last 10 child Artists of this Artist 

Spine
Spine
Spine
Spine
XAxis(80.0,52.8)
YAxis(80.0,52.8)
Text(0.5, 1.0, '')
Text(0.0, 1.0, '')
Text(1.0, 1.0, '')
Rectangle(xy=(0, 0), width=1, height=1, angle=0)
Comment