-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Contour quantization does not support negative numbers. #2994
Comments
The chart is based on the data you provide.. Can you please elaborate what you mean with correct chart. It's hard to understand what you are looking for. |
I believe the core issue here is that the weight value is assumed to be strictly positive. At minimum, we should update the documentation to reflect this. |
sorry for the bad English :( just like the picture below. [this is matplotlib contour example] I want to describe the mountain height and includes these below sea level parts
and this is another mountain pic |
@jheer yeah!that is the core! |
Thanks @yuicer! I was able to dig deeper and it turns out the KDE2D output is OK, even with negative weights (assuming the |
I've read the pr and have a try. it did have a better display. but still, a hole can't be removed so... do this pr is the final fix? the hole here is needed? |
Hi @yuicer, apologies but I don't think I'm understanding you. What do you mean by "the hole here is needed?"? The PR should provide a proper set of uniform steps between the min and max values found within the input grid of values produced by KDE2D, and use those as the default contour thresholds. You can always provide custom threshold levels if there are specific contours you would like to have included. |
would it better to |
Please:
I want to mark a mountain height chart through contour. but can not get the trough part when I put a negative number into weight. and there will be a big hole. and the hole will become confused when I mark the negative number bigger
so how can I mark the correct charts through [KDE2d, Isocontour] transform?
demo link
The text was updated successfully, but these errors were encountered: