Skip to content
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

BUG: Passing array of RGBA tuples to color parameter in .plot() throws error #1211

Merged
merged 5 commits into from Nov 18, 2019

Conversation

martinfleis
Copy link
Member

Passing array of tuples (aka list of lists), np.take in plotting flattens the array causing the error, reported in pysal/splot#83. I thought that it is the same bug as #1178 but this one was slightly different. Both caused by changes in #1119 though.

It should be fixed now, including tests.

(there is so many options how to pass colors...)

@martinfleis martinfleis added this to the 0.6.2 milestone Nov 17, 2019
@codecov
Copy link

codecov bot commented Nov 17, 2019

Codecov Report

Merging #1211 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1211   +/-   ##
=======================================
  Coverage   90.06%   90.06%           
=======================================
  Files          21       21           
  Lines        2063     2063           
=======================================
  Hits         1858     1858           
  Misses        205      205
Impacted Files Coverage Δ
geopandas/plotting.py 92.83% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 09642c2...7b1f6fc. Read the comment docs.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the quick fix!

@jorisvandenbossche jorisvandenbossche merged commit 92b7aed into geopandas:master Nov 18, 2019
jorisvandenbossche pushed a commit to jorisvandenbossche/geopandas that referenced this pull request Nov 18, 2019
jorisvandenbossche pushed a commit that referenced this pull request Nov 18, 2019
@martinfleis martinfleis deleted the fix_nptake branch March 1, 2021 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants