I want to rotate x labels in the plot, so I get something like the following (but with the label actually at the correct tick location inside the plot).
I can't find an example so could anyone give me any pointers.
Presumably this would be done using ImPlot::SetupAxisFormat with a custom formatter which calls ImPlot::PlotText with the ImPlotTextFlags_Vertical flag (which internally calls the private function ::AddTextVertical)?
I was also wondering about arbitrary angles so used the alternative as below.
.
NB there is a bug in this code:
Imgui clips the text before it is rotated. This means text at the edges can have parts missing
(as you can see in this image with the text at the right)
I want to rotate x labels in the plot, so I get something like the following (but with the label actually at the correct tick location inside the plot). I can't find an example so could anyone give me any pointers.
Presumably this would be done using ImPlot::SetupAxisFormat with a custom formatter which calls ImPlot::PlotText with the ImPlotTextFlags_Vertical flag (which internally calls the private function ::AddTextVertical)?
I was also wondering about arbitrary angles so used the alternative as below. . NB there is a bug in this code: Imgui clips the text before it is rotated. This means text at the edges can have parts missing (as you can see in this image with the text at the right)
// Rotating text from here: https://github.com/ocornut/imgui/issues/6923