-
Notifications
You must be signed in to change notification settings - Fork 58
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
ENH: add Moran scatterplot ported from splot #356
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #356 +/- ##
=======================================
+ Coverage 81.3% 81.6% +0.2%
=======================================
Files 24 24
Lines 3335 3372 +37
=======================================
+ Hits 2713 2750 +37
Misses 622 622
|
i like the idea that functions map to verbs whenever possible so i'd vote for maybe |
if you ignore insignificant (or put it in the middle), then it should always be in order for a diverging colormap, then you can set nonsig separately? Like currently if you give |
Only if you have all 5 clusters present. If you, for example, don't have Low-High in your result, the mapping will become inconsistent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor punctuation adjustments in the docstrings.
That's true but if you're sending your own cmap then youre taking that risk onto yourself imo. Choosing your own style means you might be choosing something misleading |
Co-authored-by: James Gaboardi <[email protected]>
@jGaboardi where does the need to add full stops at the end of arg descriptions come from? Is that some style I am not aware of? Those are mostly not sentences that would require it from grammar perspective no? |
It is simply my preference, as I think it's cleaner and more 'kept' looking. I'd not be offended if you did not accept the changes. |
@knaaptime I always thought that "scatter" in scatter plot is an adjective no? Is it also a noun? @jGaboardi @sjsrey what is your take on the API? splot currently uses |
i dunno english is ugly and this gets tricky. Technically 'scatterplot' is a noun. ...but I agree, i interpret the same way; "plot" is the verb, and scatter modifies the plot, so scatter is the adjective (which makes scatterplot an adverb?). I guess what I'm saying is 'pure' verbs are clearer than adverbs? Thus I prefer attempting to make things explicit: "plot the scatter", in which case scatter is a noun (the type of graph) and plotting is what we do to it but really, its late and I'm not picky. I defer to your judgment :) |
+1 on |
API and current naming ( |
This adds a method to plot a scatterplot from Moran_Local and Moran based on the splot implementation with some changes.
As a follow up, I want to figure out a smart way of colour customisation but didn't give it much thought yet.
Regarding the API, should we go with
plot_scatterplot
or just simplyscatterplot
?