Commit graph

6 commits

Author SHA1 Message Date
4bb4
06cc3061c1 Added support for linked axes. See comments.
This commit adds support for linked axes between plots. One can specify
such linked limits using the new `linked_x_axis()` function (and the
variants for the Y axes) by specifying an `Rc<RefCell<ImPlotRange>>`
value, and passing clones of the same `Rc` to other plots.

The values within those `Rc` need to be kept persistent between frames,
hence the way to use this functionality is to keep a clone of the `Rc`
outside the frame-drawing function as part of the application state.

The regular limit setting API is unaffected.
2021-05-30 11:56:14 +02:00
4bb4
af760648b6 Added some simple colorscheme setters
These don't properly expose the implot style yet in a way that is
consistent with imgui-rs' handling of styles. This is to be added
later.
2020-11-29 19:21:12 +01:00
Benedikt Mandelkow
d02f25fb32 apply some automatic clippy hints 2020-11-29 12:49:26 +01:00
4bb4
6233ef3f45 Restructured example code 2020-11-22 15:55:48 +01:00
4bb4
b6a7cae830 Brought WebGPU demo into same structure as Glium demo 2020-10-30 14:37:08 +01:00
4bb4
40f0cc8564 Reworked glium demo to use the shared example code 2020-10-30 12:42:14 +01:00