Matplotlib.axis.Tick.properties() function in Python

Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack.
 

Matplotlib.axis.Tick.properties() Function

The Tick.properties() function in axis module of matplotlib library is used to get a dictionary of all the properties of the artist. 
 

Syntax: Tick.properties(self) 
 

Parameters: This method does not accepts any parameters. 
 

Return value: This method return dictionary of all the properties of the artist. 



Below examples illustrate the matplotlib.axis.Tick.properties() function in matplotlib.axis:
Example 1:

Python3

filter_none

edit
close

play_arrow

link
brightness_4
code

# Implementation of matplotlib function
from matplotlib.axis import Tick
import numpy as np   
import matplotlib.pyplot as plt   
           
     
xx = np.random.rand(3, 4)   
           
fig, ax = plt.subplots()   
           
m = ax.pcolor(xx)   
m.set_zorder(2)  
       
w = Tick.properties(ax)  
print("Display first 10 Properties\n")  
for i in list(w)[:10]:  
    print(i, ":", w[i]) 
  
fig.suptitle('matplotlib.axis.Tick.properties() \
function Example', fontweight ="bold")  
     
plt.show() 

chevron_right


Output: 
 

 

Display first 10 Properties

adjustable : box
agg_filter : None
alpha : None
anchor : C
animated : False
aspect : auto
autoscale_on : True
autoscalex_on : True
autoscaley_on : True
axes_locator : None

Example 2:

Python3

filter_none

edit
close

play_arrow

link
brightness_4
code

# Implementation of matplotlib function
from matplotlib.axis import Tick
import matplotlib.pyplot as plt  
import numpy as np  
     
             
np.random.seed(10**7)  
geeks = np.random.randn(100)  
        
fig, ax = plt.subplots()  
ax.acorr(geeks, usevlines = True,  
         normed = True,  
         maxlags = 25, lw = 3)  
       
ax.grid(True)  
       
w = Tick.properties(ax)  
print("Display last 10 Properties\n")  
for i in list(w)[-10:]:  
    print(i, ":", w[i]) 
  
fig.suptitle('matplotlib.axis.Tick.properties() \
function Example', fontweight ="bold")  
     
plt.show() 

chevron_right


Output: 
 

 

Display last 10 Properties

ygridlines : 
ylabel : 
ylim : (-0.300605326634452, 1.061933586982593)
ymajorticklabels : 
yminorticklabels : 
yscale : linear
yticklabels : 
yticklines : 
yticks : [-0.4 -0.2  0.   0.2  0.4  0.6  0.8  1.   1.2]
zorder : 0

 

Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.




My Personal Notes arrow_drop_up

Small things always make you to think big

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.