Commit graph

7 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
21aa28591c Added stem plots and legend entry hover checking 2021-01-31 12:40:13 +01:00
4bb4
6233ef3f45 Restructured example code 2020-11-22 15:55:48 +01:00
4bb4
4cd199071c Added heatmap support. See comments.
The basic functionality seems to work, though setting the drawing area
seems buggy. I'll have to investigate more.
2020-11-15 10:36:51 +01:00
4bb4
1643032c7a Added stairs plot support 2020-11-08 19:41:51 +01:00
4bb4
40f0cc8564 Reworked glium demo to use the shared example code 2020-10-30 12:42:14 +01:00
4bb4
8c623a7a79 Added an examples-shared crate to be used from the others 2020-10-30 12:24:08 +01:00