Matplotlib.pyplot.figimage() function in Python
Matplotlib is a widely used library in Python for plotting various graphs, as it provides very efficient ways and easy to understand methods for complex plots also. pyplot is a collection of command style functions that make matplotlib work like MATLAB.
matplotlib.pyplot.figimage() is a method for adding a non-resampled image to the figure. Usually, it attaches the image to the lower or upper left corner depending on origin.
Syntax: matplotlib.pyplot.figimage(*args, **kwargs)
alpha is a float valued parameter, It is used to give the blending value for the image. It is an optional parameter. When not specified, it takes the default value as ‘None’.
Xo, Yo is another important parameter which states the shape of the image data. Usually it can be ‘both’, ‘x’, or ‘y’. It takes the x/y image offset in pixels.
**kwargs It is an additional parameter generally known as kwargs. They are Artist kwargs passed on to FigureImage.
Now let us take a simple examples to illustrate the working of matplotlib.pyplot.figimage().
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