-
Notifications
You must be signed in to change notification settings - Fork 26
Colors are not fixed is LISA maps #80
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
Comments
@alvinegro can you add a code snippet so we can help debug? |
@sjsrey I have a dictionary called "separado_rgi" with dfs from 2002 to 2017.
The first code above, generated this map: In 2003, there was significant regions in all the 4 categories, but, in some years (e.g. 2006) some categories does not have any region with significance level. So when I created the map, the colors related to each category was changed (now, LH is orange, istead of lightblue): I would like that the colors be the same for all over the years, so it would be possible to compare the evolution of the clusters. |
I can't reproduce this on other examples, so a couple of options: If that doesn't work, can you send your data so I can debug locally? |
Hello @alvinegro, which splot release are you using? already v1.1.1? If not then this could be fixed by using the most up to date version. If it is still a problem, I know where the bug is. Just let me know. |
I misread your earlier response, and now see you are passing a geodataframe in the second argument. So, I can check things locally if you are able to share the data. |
@slumnitz how can I check or update the version of the splot release? |
@sjsrey I sent the data to your e-mail |
if you used pip for the installation: pip install —upgrade splot if you used conda: conda update splot |
@slumnitz I updated the splot to version 1.1.1 but the problem persists |
hello @alvinegro, I am sorry, but I cannot reproduce your error. Sorting the right label with the right colour works for all of my datasets: I would highly recommend double checking your Otherwise, feel free to also share your data with me and I can see if I can get it working or get it debuged. |
When I create a map that does have regions in the 4 classes, the colors are ok (Light blue used to LH):

But when I create a map that does not have regions in each of the 4 categories, the colors are changed (orange used to LH):

How can I fix the colors to compare the same map in different times?
The text was updated successfully, but these errors were encountered: