-
-
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] Projection plots: Customizable plots #4828
Conversation
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.
It looks great. I haven't dived into the code yet, I just glanced over it, but haven't caught the entire idea. I'll do it in the following days. Ping me on Monday if I don't.
- Why can't the user change the font size for ticks?
- Now that the user can increase it, could we make the default size for labels smaller? 9 looks great on my computer.
- Do you think it's necessary to have separate font sizes for categorical and numerical legend?
I was too negligent when reviewing biolab/orange-widget-base#70.
- Reset button resets the graph, but not the values in controls, e.g. spin boxes.
- Modified settings are not saved. I think they should be saved as schema-only settings.
And now for a killer functionality: a button "Copy settings" (or just "Copy") that would put the settings from the current onto clipboard (not the real one, just a global "orange visual settings clipboard" and a button "Paste Settings" (or "Paste" -- if it's beside "Copy", users will get the idea) that would paste all applicable settings from "clipboard" into the current dialog. It would be totally fancy and probably trivial to implement -- it's almost the same as reset.
I think the pyqtgraph does not support that (well, it does, but not correctly and the ticks may overlap with the title), so some
If you prefer, sure. Just add
I don't know. I just kept the old functionality (different default sizes). IMO, the smaller size looks better for the numerical one. We can discuss upon that, now that the sizes can easily be changed during the runtime.
Strange, it does on my computer. I'll check that.
I agree. I thought I'd do it in the next iteration, when the idea is confirmed. |
Are you sure about the Reset button? It works fine for me. How about the I'm always up for the killer functionalities :) |
@markotoplak, is this going to propagate to the Orange Spectroscopy plotting widgets? |
4e97b0b
to
4ae30d6
Compare
@borondics, yes. |
c9f9d47
to
9175fa9
Compare
8e29156
to
dadcb31
Compare
This is indeed becoming huge and needs to be reviewed ASAP. It is amazing, though. Most of the code is in orange-widget-base (which I think is OK). The code here is either "declarative" or takes care of updating. There is not much to check, except that updating indeed updates -- which is to be done manually, I suppose, because part of it is whether there are any pyqtgraph quirks to avoid. Therefore, I think somebody should systematically click through visualizations. Here are comments after my non-systematic clicking:
This being a non-essential part of Orange and unlikely to cause any debilitating bugs, I'd vote for merge early and fix as needed. |
I volunteer. I am extremely qualified for systematic clicking. 👑 |
Yes. Selection in Line plot is too slow for antialiased plots.
I agree with the setting not being obvious, but I'm not sure how to include the label. |
OK.
Let's wait if anybody has a suggestion, otherwise leave.
I had this idea while writing, and haven't checked. Sorry. :) |
Renamed in biolab/orange-widget-base#83 |
I can change the order (Qt provides a sorted list of font families), but I'd rather not remove the period. If I removed it, I'd need a mapping (back to original) which would complicate the code. |
Works great so far! :) |
Codecov Report
@@ Coverage Diff @@
## master #4828 +/- ##
==========================================
- Coverage 84.16% 84.08% -0.09%
==========================================
Files 282 278 -4
Lines 57465 56991 -474
==========================================
- Hits 48368 47923 -445
+ Misses 9097 9068 -29 |
We decided to ignore coverage, because tests would take months to write and in the meantime this PR would get outdated. Wrote an issue #4891 not to forget about it. |
Issue
Partially implements #4493
Needs biolab/orange-widget-base#74
Description of changes
Enable setting label (axes, labels, legend) fonts, annotations and figure properties on projection widgets and some other widgets with plots
TODO
Includes