Aug-19-2020, 01:19 AM
Hello all
I am using the matplotlib module for the first time and trying to create a few sample plots.
I was struggling to understand the list of arguments that the pyplot.plot() function takes.
The argument lists includes
My understanding so far is:-
*args = Is the X and Y data that is to be plotted but why is there a * next to it and why is it called args?
scalex = Relates to the scaling and data view limits in the x dimension.
scaley = Relates to the scaling and data view limits in the y dimension.
data = No idea what this argument refers to????
**kwargs = The matplotlib web states that this argument relates to several properties such as label,lien width etc but how can one argument relate to
several properties??? and why is there 2 x stars (**) next to it?, does kwargs stand for anything?
Any insight would be greatly appreciated.
Thank you.
I am using the matplotlib module for the first time and trying to create a few sample plots.
I was struggling to understand the list of arguments that the pyplot.plot() function takes.
The argument lists includes
matplotlib.pyplot.plot(*args, scalex=True, scaley=True, data=None, **kwargs)I have looked at the matplot lib website and although there is documentation on these parameters it is still not clear to me what these arguments refers to and i was hoping someone could help.
My understanding so far is:-
*args = Is the X and Y data that is to be plotted but why is there a * next to it and why is it called args?
scalex = Relates to the scaling and data view limits in the x dimension.
scaley = Relates to the scaling and data view limits in the y dimension.
data = No idea what this argument refers to????
**kwargs = The matplotlib web states that this argument relates to several properties such as label,lien width etc but how can one argument relate to
several properties??? and why is there 2 x stars (**) next to it?, does kwargs stand for anything?
Any insight would be greatly appreciated.
Thank you.