Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Plotting methods modify color arrays in place #12039
Comments
TomAugspurger
added the
Visualization
label
Jan 14, 2016
TomAugspurger
added this to the
0.18.0
milestone
Jan 14, 2016
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Jan 15, 2016
|
|
TomAugspurger |
13bd183
|
TomAugspurger
closed this
in #12040
Jan 16, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mwaskom commentedJan 14, 2016
Ran into a weird issue where pandas plotting was changing values in color arrays I was passing to it.
Here is a simple example (Pandas 0.17.1; Python 2.7; OSX):
outputs:
I've seen various other kinds of changes, including sometimes changing the values but not the length of the color array. A particularly nasty one was where I had taken some actual data and passed it through a matplotlib norm and colormap, and the modifications made their way all the way back up to my data.
I assume this can easily be handled by copying the color array, but I'm not sure.
Sorry if this has been reported...I checked recent issues and didn't see anything, but there are a lot :)