Matplotlib.axis.Tick.set_sketch_params() 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.
The Tick.set_sketch_params() function in axis module of matplotlib library is used to sets the sketch parameters.
Syntax: Tick.set_sketch_params(self, scale=None, length=None, randomness=None)
Parameters: This method accepts the following parameters.
- scale: This parameter is the amplitude of the wiggle perpendicular to the source line, in pixels.
- length: This parameter is the length of the wiggle along the line, in pixels.
- randomness: This parameter is the scale factor by which the length is shrunken or expanded.
Return value: This method does not return any value.
Below examples illustrate the matplotlib.axis.Tick.set_sketch_params() function in matplotlib.axis:
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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course