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

Method dpos_dvalue_x

egui_plot/src/axis.rs:559–562  ·  view source on GitHub ↗

delta position / delta value = how many ui points per step in the X axis in "plot space"

(&self)

Source from the content-addressed store, hash-verified

557 /// delta position / delta value = how many ui points per step in the X axis
558 /// in "plot space"
559 pub fn dpos_dvalue_x(&self) -> f64 {
560 let flip = if self.inverted_axis[0] { -1.0 } else { 1.0 };
561 flip * (self.frame.width() as f64) / self.bounds.width()
562 }
563
564 /// delta position / delta value = how many ui points per step in the Y axis
565 /// in "plot space"

Callers 2

dpos_dvalueMethod · 0.80
dvalue_dposMethod · 0.80

Calls 1

widthMethod · 0.45

Tested by

no test coverage detected