Thursday, November 20, 2025
HomeLanguagesMatplotlib.axis.Tick.update() function in Python

Matplotlib.axis.Tick.update() 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.update() Function

The Tick.update() function in axis module of matplotlib library is used to update this artist’s properties from the dictionary props. 
 

Syntax: Tick.update(self, props) 

Parameters: This method accepts the following parameters. 

  • props: This parameter is the dictionary of the properties.

Return value: This method does not return any value. 

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

Python3




# Implementation of matplotlib function
from matplotlib.axis import Tick
import matplotlib.pyplot as plt  
import numpy as np  
     
             
np.random.seed(10**7)  
neveropen = np.random.randn(100)  
        
fig, ax = plt.subplots()  
ax.acorr(neveropen, usevlines = True,  
         normed = True,  
         maxlags = 40, lw = 3)  
       
ax.grid(True)  
       
prop = {'xticks': np.array([-10., -5.
                            0., 5., 10.]),  
        'yticks': np.array([-0.20.2,  
                            0.6, 1., 1.4]),  
        'ylabel': None, 'xlabel': None}  
       
Tick.update(ax, prop)
  
ax.set_title('matplotlib.axis.Tick.update() \
function Example', fontweight ="bold")  
     
plt.show() 


Output: 
 

Example 2:

Python3




# Implementation of matplotlib function
from matplotlib.axis import Tick
import numpy as np   
import matplotlib.pyplot as plt   
       
       
xx = np.random.rand(6, 5)   
          
fig, ax = plt.subplots()   
          
m = ax.pcolor(xx)   
m.set_zorder(-20)  
prop = {'autoscalex_on': False}  
       
Tick.update(ax, prop)
  
ax.set_title('matplotlib.axis.Tick.update() \
function Example', fontweight ="bold")  
     
plt.show() 


Output: 

 

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32404 POSTS0 COMMENTS
Milvus
97 POSTS0 COMMENTS
Nango Kala
6776 POSTS0 COMMENTS
Nicole Veronica
11924 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11994 POSTS0 COMMENTS
Shaida Kate Naidoo
6904 POSTS0 COMMENTS
Ted Musemwa
7159 POSTS0 COMMENTS
Thapelo Manthata
6859 POSTS0 COMMENTS
Umr Jansen
6846 POSTS0 COMMENTS