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: Unknown property legend_values in gplt.choropleth #54

Closed
kartikdesikan opened this issue Mar 20, 2018 · 2 comments
Closed

Bug: Unknown property legend_values in gplt.choropleth #54

kartikdesikan opened this issue Mar 20, 2018 · 2 comments
Labels

Comments

@kartikdesikan
Copy link

Hi,
I don't see legend_values in gplt.choropleth source code and of course while trying to run the command I got the error AttributeError: Unknown property legend_values

My question further is that I have a categorical column with values VLOW, LOW, MED, HIGH. I wanted to represent my geomap with:
(a) Legend with this specific order VLOW, LOW, MED, HIGH
(b) Colors of my choice say [darkred, red, blue, green] to make intuitive sense of the labels.

Part (a) as per my understanding would work by using legend_values = ['VLOW', 'LOW', 'MED', 'HIGH'] and legend_labels= ['VLOW', 'LOW', 'MED', 'HIGH'] with categorical = True. Currently as I can only use legend_labels, the legend label order is right, but the values in the map don't match the legend

I have no idea about how to do part (b)

Please help. Thanks!

@ResidentMario
Copy link
Owner

Yep, this is a bug. 🤕 Sorry for not looking at this earlier, I'll put this on the to-do list for 0.2.1.

@ResidentMario ResidentMario added this to the 0.2.1 milestone May 10, 2018
@ResidentMario ResidentMario removed this from the 0.2.1 milestone Nov 18, 2018
@ResidentMario
Copy link
Owner

Fixed prior to #114.

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

No branches or pull requests

2 participants