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

vba_choropleth - Transparent polygons #146

Open
ivandorte opened this issue Nov 15, 2021 · 1 comment
Open

vba_choropleth - Transparent polygons #146

ivandorte opened this issue Nov 15, 2021 · 1 comment

Comments

@ivandorte
Copy link

Good evening,
I was trying vba_choropleth and I noted that polygons of the lowest class are colored as transparent. Is this a bug?
This is the code that I used:

>>> vba_choropleth(x, 
                   y, 
                   df, rgb_mapclassify=dict(classifier='quantiles', k=5),
                   alpha_mapclassify=dict(classifier='quantiles', k=5), 
                   legend=True, 
                   cmap='viridis', 
                   ax=ax)

And this is the result. France, Portugal and Spaign and others are transparent:
output
Thanks! Ivan!

@martinfleis
Copy link
Member

Hi, yeah, we need to fix the way we stretch the values here so it starts at low alpha but not 0. It has been already reported (and partially discussed) in #138.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants