-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove hardcoded alpha from hyperedge drawing #347
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #347 +/- ##
==========================================
+ Coverage 90.36% 90.39% +0.03%
==========================================
Files 41 41
Lines 2988 2988
==========================================
+ Hits 2700 2701 +1
+ Misses 288 287 -1
☔ View full report in Codecov by Sentry. |
I like the concept of this, but I picture alpha being a separate parameter with a default value of 0.4, instead of lumped with the color. As it is implemented in this PR, drawing with the default parameters, i.e., |
Yeah you're right. I will say however that specifying the alpha of each color is actually very common. Right now, the default value of 0.4 overrides any alpha value in the color. The current PR fixes this. I can also try to make it so that we accept alpha values as a separate array, separate from color. I honestly do not like that idea at all since then there would be two different ways of specifying the same thing. |
I see. So is there a way to have a default alpha entry for facecolor which gets overridden when the user specifies it? |
I'm unsure what I'd want here too. I understand you can specify an I feel like people would less often want to specify different I agree with Nich that it would be nice to have a default |
Yeah you're right. In light of this being what MPL does, we should follow suit too. |
Thanks both for your comments. I think having a default alpha value is nice too. After playing with
This is counterintuitive to me for many reasons, but whatever. Do we want to mirror the same interface? |
I think this plan makes sense for now. If we handle the logic flow that you've described in |
I'd say let's mirror this for now yes |
The transparency of hyperedges is currently hardcoded to 0.4.
The following code:
Before this PR:
After this PR:
Cc. @iaciac