mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
Plot custom zoom (#2714)
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * If applicable, add a screenshot or gif. * Unless this is a trivial change, add a line to the relevant `CHANGELOG.md` under "Unreleased". * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./sh/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review you PR, but my time is limited! --> - Added methods to zoom the plot programmatically, to match the previously added `translate_bounds()`. - Added an example of how this method can be used to customize the plot navigation. Closes #1164.
This commit is contained in:
7
examples/custom_plot_manipulation/README.md
Normal file
7
examples/custom_plot_manipulation/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Example how to use raw input events to implement alternative controls to pan and zoom the plot
|
||||
|
||||
```sh
|
||||
cargo run -p custom_plot_manipulation
|
||||
```
|
||||
|
||||

|
||||
Reference in New Issue
Block a user