-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] Shiny renewed widget Distributions #3896
Conversation
f3687ba
to
6d08361
Compare
Codecov Report
@@ Coverage Diff @@
## master #3896 +/- ##
==========================================
+ Coverage 84.95% 84.97% +0.02%
==========================================
Files 376 376
Lines 65907 66458 +551
==========================================
+ Hits 55992 56476 +484
- Misses 9915 9982 +67 |
The widget includes a lot of user interaction, so the test coverage will not reach the requested threshold. @ajdapretnar can start torturing it when she finishes touring. |
3e97ac2
to
d10f09b
Compare
First of all, I like that we are updating and improving a widget as important as Distributions - it really is one of the first things a user checks to explore new data. The new version looks very nice, but here are some comments anyway:
|
Fixed
I disabled both.
I like the suggestion. Tooltip doesn't look well, so I added the bin width as a label. It is a bit weird that dragging right decreases the width (because it increases the number of bins). I can of course reverse it (or rename width -> narrowness :), but then it will look strange in reverse. I prefer it as it is, but won't object if you prefer turning it arond.
The label now changes from "Fitted distributions" to "Fitted probability", and I also added a tooltip.
And if you zoomed it, it even crashed.
Fixed and fixed. Won't fix
I don't know why this happens - the curves are computed the same way so they should not affect the x axis (although they are inserted into a different plot). Looks like a glitch that one can waste an afternoon on - but I wouldn't.
We (at least @BlazZupan and I :) agreed to remove it. I don't strongly oppose it and can easily add it later (or somebody else does it).
Tick labels are not separate QGraphicsItems, they are printed in |
…xis to 'plotutils'
00a0c5b
to
4e93809
Compare
There is an issue with the selection. By default if you click above the histograms, nothing will be selected. Unless you have Show probabilities checked, then you can select the space above histograms. I am slightly confused by the missing Gaussian distribution. We use it in many widgets and I think most people are used to it. I do not mind having only histograms, but it might be very strange having this widget without it. I can displace the legend by pushing it too far out of the screen. 🙈 I don't know how to get it back. It is lost in time and space. I think it is a little weird having the variable list jump up and down when changing attributes. I am not entirely against it, but I am playing with the idea of having just the Distributions box disabled for discrete. 🐛 Connect Twitter widget to Distributions and search for random 100 tweets.
|
Upon additional exploration, we have some more comments (such ungrateful brats we are!):
|
I was aware of this. Extending bounding boxes to the top of the plot would require each bar to know the heights of all other bars. I won't to this. The other two solutions I have require mapping of mouse coordinated. Ask @markotoplak or @VesnaT how complicated are pyqtgraph's mappings. I wasted a few (more) hours this morning, but couldn't. And won't. Making me nervous. Bad mood. Children tiptoeing around me already.
Gaussian distribution is there, at the top, isn't it? See"Normal".
You can do the same in the scatter plot. It's a general issue that should be fixed generally.
Now I disable instead of hiding.
Do what instead? Hide them from the list view and post an informative warning at the bottom of the widget? :)
Computation of thresholds or putting values into bins? The most time consuming operation in the former should be a call to
OK, reverted.
Fixed.
Please provide another means to replicate (e.g. upload data). Twitter requires creating a developer account or something. I could guess a problem and add a probable fix, but wouldn't like to pollute the code with unnecessary checks "just for the case".
Do what instead? Keep the slider at the same position? Can't, different variables have different number of possible binnings. Besides, the same position may mean a different number of bins; you would find it confusing, too. I also tried keeping the number of bins as similar as possible when switching variables, e.g. if you have 5 bins and switch to a variables that has 3, 4, 7, 10 or 12, you go to 4. This however doesn't work because it tends to diverge -- you move up and down the list and the number of bins would for some reason go to one of extremes. Remembering individual settings is not a feature, but necessity. |
17f0917
to
2a262d4
Compare
Long conversation. 😊
|
Sorry, sorry, sorry. I have just seen something quite strange. Bins are strange for this data. Value results in a very thin column, even though there are two values of 21 and 2 of 4. Cls on the other hand does not even have 2 in the values, but from the histogram it looks like it does. The actual values of cls are 0, 1 and 3, but one cannot see that from the histograms. |
|
Outstanding issues:
|
To do: