python - Pandas: how to plot with custom colors and symbols -
how can use colors have long name , custom markers in pandas?
with standard colors do:
df.plot(style = 'ro') but cannot do:
df.plot(style = 'lightgreeno') i tried:
df.plot(color = 'lightgreen', style = 'o') but get:
valueerror: cannot pass 'style' string color symbol , 'color' keyword argument. please use 1 or other or pass 'style' without color symbol any ideas?
style wraps color , marker , linestyle together. specify 1 of explicitly, need explicit of them. example plot documentation:
plot(x, y, color='green', linestyle='dashed', marker='o', markerfacecolor='blue', markersize=12).
so in line change style marker :
df.plot(color = 'lightgreen', marker = 'o')
Comments
Post a Comment