Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Cannot use hex strings or named matplotlib colors with DataFrame.plot #10299
Comments
TomAugspurger
added the
Visualization
label
Jun 8, 2015
TomAugspurger
added this to the
0.17.0
milestone
Jun 8, 2015
|
Looks like we parser color='bgr' color line 1 blue, line 2 green, line 3 red. It tries to do that here when it sees a list of characters, but '#' isn't a valid color. I'd be open to a pull request to support this. |
jorisvandenbossche
added the
Enhancement
label
Jun 8, 2015
jreback
modified the milestone: Next Major Release, 0.17.0
Aug 19, 2015
jreback
added Prio-low Difficulty Novice Effort Low
labels
Aug 19, 2015
jreback
modified the milestone: 0.17.1, Next Major Release
Oct 12, 2015
sinhrks
closed this
in #11293
Oct 15, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pbreach commentedJun 6, 2015
I was going to put this on SO but I think it might belong here instead:
I have a pandas DataFrame where I want to plot each column as a line with the same color. This might sound useless but I am showing groups of lines from certain selections of the DataFrame. The only problem is it appears that the
DataFrame.plotmethod does not accept any matplotlib hex strings or named colors in the color kwarg.A trivial example:
gives a blank subplot with no errors, however,
gives the expected result. To me this seems like a bug considering that
color='g'works but not its hex string equivalent. The same issue occurs when trying to use a named matplotlib color likecolor='lightgray'. This does however work when usingSeries.plotorDataFrame.plotwith one column or if a list of hex strings or named colors are given with length equal to the number of columns as in,