-
Notifications
You must be signed in to change notification settings - Fork 5
Force scale ratio if x and y axis have same unit for 1D and 2D plots #80
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
base: develop
Are you sure you want to change the base?
Changes from all commits
d723e3e
378958f
6426e34
51f33d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,6 +89,7 @@ export interface BaseDataGridPlot { | |
| isTitleOverwritten: boolean; | ||
| displayErrorBand: boolean; | ||
| displayGrid: boolean; | ||
| xyRatioRule: 'Auto' | 'None' | 'Force'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drop-down menu with these 3 options does not feel like the most friendly UI.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As during our discussion this morning it was raised that these three modes were present because they apply also in 1D plots and when we switch back and forth between 2D and 1D, maybe we can simplify and only have this costumisation option for 2D plots? That way this option has no effect on 1D plots, where fixed ratio between x and y ticks is less of an issue. If this (default value of the boolean depending on units of the first 2D plot in the figure) we can also decide to simplify and set a static default value (e.g. fixed ratio, so spatial planes will look nicer) and let the user unselect the option if she/he wants a plot that covers the entire figure. For further reference and additional context, please see how this is handled in h5view with this small video: myhdf5-ratio-2026-06-12_11.36.57.mp4
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for your the proposed solution. I agree that if we apply the square ratio only for 2D plots, it will simplify the use of a boolean instead. We just need to improve the solution to be compatible with the feature allowing to change of axis. In this case, units of x & y axis can change. So I am wondering what we should do. I see 2 possibilities:
Which one do you think will be the most appropriate for the users ? From my point of view, I think the second option will be better because by changing axis, we always ensure the user have the expected ratio for visualisation. And then, it's up to him to update the ratio.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I missed this question: I would favor option 1, seems like a simpler implementation (maybe I'm wrong) and it avoids the case where the user is setting the ratio, and have to set it back each time he explore other axis and come back. |
||
| synchronizedGrids: synchronizedList; | ||
| downsampled_method?: string; | ||
| downsampled_size?: number; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.