-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataFrame plot method no long takes RGB tuple as color arg #16695
Comments
Follow up:
This looks related to #16233 which fixes #3486 but breaks what I perceive to be a fairly standard way of assigning line color (e.g. it is the first method listed for specifying color on https://matplotlib.org/users/colors.html). |
@kjford Thanks for the report! That is indeed a regression, and should be fixed. Want to do a PR to fix? |
Thanks @jorisvandenbossche. See #16701. I noticed that there are some other API inconsistencies with RGB(A) tuple handling that persist from prior versions which I chose not to address for now. |
Yes, that's pefect, as the other fixes should go in another PR anyway (that would not be for 0.20.3 I think). |
This is closed, but still an issue for me in pandas |
@kjford you would have to open a new issue with a reproducible example on latest version |
(@jreback I think you meant that comment for @jxmorris12) Like @jreback mentioned, @jxmorris12 can you provide a reproducible example in a new ticket? The example provided in the issue body is fixed in the latest release and I just checked |
Problem description
The
plot
method onDataFrame
objects takes acolor
argument that in versions prior to 0.20.2 took an RGB tuple as an accepted value. The 0.20.2 release throws an exception when specifying an RGB tuple for thecolor
arg.Code Sample
Expected Output
The expected output is a red line plot. The following exception is thrown:
This plot is correctly displayed with an identical environment that has pandas 0.19.2 installed so is API breaking.
Apologies if this is fixed already in master.
Output of
pd.show_versions()
pandas: 0.20.2
pytest: None
pip: 9.0.1
setuptools: 36.0.1
Cython: None
numpy: 1.13.0
scipy: None
xarray: None
IPython: 5.4.1
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: