MCPcopy Create free account
hub / github.com/emilk/egui_plot / plot_bounds

Method plot_bounds

egui_plot/src/plot.rs:1906–1908  ·  view source on GitHub ↗

The plot bounds as they were in the last frame. If called on the first frame and the bounds were not further specified in the plot builder, this will return bounds centered on the origin. The bounds do not change until the plot is drawn.

(&self)

Source from the content-addressed store, hash-verified

1904 /// this will return bounds centered on the origin. The bounds do
1905 /// not change until the plot is drawn.
1906 pub fn plot_bounds(&self) -> PlotBounds {
1907 *self.last_plot_transform.bounds()
1908 }
1909
1910 /// Set the plot bounds. Can be useful for implementing alternative plot
1911 /// navigation methods.

Callers 2

show_plotMethod · 0.80
auto_bounds_trueFunction · 0.80

Calls 1

boundsMethod · 0.45

Tested by 1

auto_bounds_trueFunction · 0.64