Matplotlib.axis.Axis.get_agg_filter() 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.Axis.get_agg_filter() Function
The Axis.get_agg_filter() function in axis module of matplotlib library is used to get the filter function to be used for agg filter. 
 
Syntax: Axis.get_agg_filter(self)
Parameters: This method does not accepts any parameter.
Return value: This method return the filter function to be used for agg filter.
Below examples illustrate the matplotlib.axis.Axis.get_agg_filter() function in matplotlib.axis:
 
Example 1:
Python3
# Implementation of matplotlib function from matplotlib.axis import Axis import numpy as np  import matplotlib.pyplot as plt  from matplotlib.artist import Artist           xx = np.random.rand(6, 5)      fig, axs = plt.subplots()      m = axs.pcolor(xx)  m.set_zorder(-2)      # use of get_agg_filter() method  val = Axis.get_agg_filter(axs)  axs.set_title("Value Return by get_agg_filter(): "              + str(val))   fig.suptitle("""matplotlib.axis.Axis.get_agg_filter() function Example\n""", fontweight ="bold")       plt.show()  | 
Output: 
 
Example 2:
Python3
# Implementation of matplotlib function from matplotlib.axis import Axis import numpy as np  import matplotlib.pyplot as plt          np.random.seed(10**7)  zambiatek = np.random.randn(40)      fig, axs = plt.subplots()  axs.acorr(zambiatek, usevlines=True, normed=True,            maxlags=30, lw=2)      axs.grid(True)      # use of get_agg_filter() method  val = Axis.get_agg_filter(axs)  axs.set_title("Value Return by get_agg_filter(): "               + str(val))    fig.suptitle("""matplotlib.axis.Axis.get_agg_filter() function Example\n""", fontweight ="bold")       plt.show()  | 
Output: 
 
				
					



