ENH: Dictionary based hatch for df.plot #46965
Labels
Enhancement
Needs Triage
Issue that has not been reviewed by a pandas team member
Visualization
plotting
Is your feature request related to a problem?
When using
df.plot
, we can set the colors of bars using a dictionary, e.g.:However, we cannot do the same with hatches. This can only be set on a global level as far as I can tell.
Describe the solution you'd like
DataFrame.plot()
should be able to take a dictionary of hatches, and set them in the same way ascolor
.E.g.,
Describe alternatives you've considered
There are StackOverflow discussions of this feature, where users have suggested hacks and workarounds to this, using native matplotlib.
E.g. this answer
However, having it integrated in pandas, with the advantages of using a dictionary of column names would be preferable.
The text was updated successfully, but these errors were encountered: