In the following expample I would like to assign the arguments passed to the plot in an appropriate datatype. Let his name be "plotargument". How do I assign plotargument correctly so I am able to get the same result from df.plot(plotargument)
as from
df.plot(x='Timestep', y='Position', figsize=(14,7),fontsize=15,grid=True)
.
An example usecase is to be found below:
import pandas as pd
from random import random
series=[0]
for x in range(0,2000):
series.append(series[x]+1) if random()<0.5 else series.append(series[x]-1)
df= pd.DataFrame({'Timestep' :[x * 200 for x in range(0,2001)], 'Position': series })
df.plot(x='Timestep', y='Position', figsize=(14,7),fontsize=15,grid=True)