Moved this to it's own separate isuue, instead of #12
See df.plot documentation, and notice how you can pass kwargs to matplotlib:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.html
So my guess is that it can be done like this: (pseudo)
def line_plot(df, title, save=None, **kwargs):
# <...>
df.plot(kind="line", title=title, kwargs=kwargs)
# <...>
More on stackoverflow:
https://stackoverflow.com/questions/29504573/panda-dataframe-passing-in-parameters-for-plotting
Another stackoverflow example:
def valid_mpl(**kwargs):
fig, ax = plt.subplots()
fake_kwargs = ['my_fake_kwarg']
plot_kwargs = {k: v for k, v in kwargs.items() if k not in fake_kwargs}
ax.plot([1,2,3], [-3, -2, -1], **plot_kwargs)
return fig, ax
Moved this to it's own separate isuue, instead of #12
df.plotresources:
https://realpython.com/python-kwargs-and-args/
https://matplotlib.org/1.5.1/devel/coding_guide.html#style-guide
See df.plot documentation, and notice how you can pass kwargs to matplotlib:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.html
So my guess is that it can be done like this: (pseudo)
More on stackoverflow:
https://stackoverflow.com/questions/29504573/panda-dataframe-passing-in-parameters-for-plotting
Another stackoverflow example: