-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add Plot::allow_auto_bounds
#2569
Closed
Closed
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
599e919
add Plot::allow_auto_bounds
haricot 6b057c4
reformulate docstring: allow_auto_bounds
haricot 53ed8ec
Update CHANGELOG.md
haricot 57d2642
Update formating
haricot 8c80132
Merge remote-tracking branch 'origin/master' into allow_auto_bounds
haricot bd77c27
Update logic allow_auto_bounds
haricot 3da8c63
Update logic allow_auto_bounds
haricot ad80536
Update doc allow_auto_bounds
haricot 2617738
Update doc allow_auto_bounds if set_plot_bounds
haricot 1bd2e72
Merge remote-tracking branch 'origin/master' into allow_auto_bounds
haricot d8a80d2
Update formating
haricot f7b5fd6
update doc allow_auto_bounds
haricot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think you should try to explain what it means for the user to set this to
true
orfalse
.Does "bounds" here mean the view of the plot (zoom/pan)?
How does this relate to
PlotUi::set_plot_bounds
?What bounds will be used when this is set to
false
?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.
I suggest this:
Possible solution for
allow_auto_bounds
andset_plot_bounds
by passing something like this when initializing plot:Plot::new("myplot").allow_auto_bounds(false).preset_bounds(plotbounds)
or something a enum.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.
or something like:
I will try to test this.
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.
or rather just this:
widgets/plot/mod.rs
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.
I opened issue #3371 related this pull request, how i think it resolve this indirect approach.
Also i realize i think we can add set_bounds and dynamic zoom and translate under process default bounds (currently enforce aspect ratio) like vec ![bounds_modifications] but in setting by using factor_delta_changed slider.