Questions tagged [implot]
2 questions
1
vote
0 answers
How do I specify the bar colors in ImPlot::DrawBarGroups?
I'm struggling to understand how the colors work in ImPlot.
Here, I'm plotting bars in groups of 3.
static const char* labels[] = {"X", "Y", "Z"};
if (ImPlot::BeginPlot("Sensor activity"))
{
ImPlot::PlotBarGroups(labels, &(barData[0]), 3,…

Rocketmagnet
- 5,656
- 8
- 36
- 47
0
votes
1 answer
Tilted, vertical text for ticks on X axes for my plots
When setting up labels for ticks on my X axes:
ImPlot::SetupAxisTicks(ImAxis_X1, positions, COUNTC, labels);
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…

Michal Karm Babacek
- 414
- 6
- 24