Is there a way to set the marker style in pandas.DataFrame.plot? All other options are available by setting the kind. I would like a marker with error bar but just get a line with an error bar. If I was to do this through the function errorbar I would set fmt='.'
You can set the labels on that object. Or, more succinctly: ax. set(xlabel="x label", ylabel="y label") . Alternatively, the index x-axis label is automatically set to the Index name, if it has one.
df.plot
passes extra keyword parameters along to the underlying matplotlib plotting function. Thus,
df = pd.DataFrame({'x':np.arange(10), 'y':np.random.randn(10),
'err':np.random.randn(10)})
df.plot('x', 'y', yerr='err', fmt='.')
yields
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With