You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like those to be rendered vertically, or rotated with a specific angle, e.g. to get from:
to this or similar (excuse the blurry GIMP sketch):
I have been looking up "formatter" and "ImPlotAxisFlags" in the source and I am still not clean on how to do that without actually coding a whole new functionality, rotating the text myself. Looking at the online demo, it seems to me perhaps the "tags" formatting could help, yet no dice.
I would appreciate if you could point out either "LOL, use this flag and then this double would be the angle in radians" or if you could confirm that there is no such API and I have to somehow do it myself.
Drawing arbitrary vertical text,
for(int i =0;i < COUNTC;i++) {
ImPlot::PlotText(labels[i], i, 7.0f, ImVec2(0,0), ImPlotTextFlags_Vertical);
}
I achieved this:
...so feels like if I just did it in...the tick formatter it could be the ticks labels? (EDIT: Nope. The formatter function declaration just handles string buffer, no drawing)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
When setting up labels for ticks on my X axes:
I would like those to be rendered vertically, or rotated with a specific angle, e.g. to get from:

to this or similar (excuse the blurry GIMP sketch):
I have been looking up "formatter" and "ImPlotAxisFlags" in the source and I am still not clean on how to do that without actually coding a whole new functionality, rotating the text myself. Looking at the online demo, it seems to me perhaps the "tags" formatting could help, yet no dice.
I would appreciate if you could point out either "LOL, use this flag and then this double would be the angle in radians" or if you could confirm that there is no such API and I have to somehow do it myself.
Drawing arbitrary vertical text,
I achieved this:

...so feels like if I just did it in...the tick formatter it could be the ticks labels? (EDIT: Nope. The formatter function declaration just handles string buffer, no drawing)
THX 🙏
All reactions