Egui plot how to set origin like below?

Didn't test, and don't intend to do.

x_axis_position seems the target.

this method can set x axis position top or bottom. but i want to set below the x axis as the positive direction of y axis.

It seems pretty hardcoded to be positive-up, but you could invert all your data and then invert the sign in x_axis_formatter.

This is the default formatter if you want to start with that: https://docs.rs/egui_plot/latest/src/egui_plot/axis.rs.html#154-170

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.