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 need to draw many horizontal plots and make sure that they all have the same scale (plot area height).
At the same time, I need to only show 1 X axis and sync with all plots.
How do I make sure the plot area height is the same in all plots?
Right now, I use row_ratios as a workaround to match them approximately but it doesn't seem as proper solution, provided I don't know how labels are calculated and it breaks on resize.
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
-
I need to draw many horizontal plots and make sure that they all have the same scale (plot area height).
At the same time, I need to only show 1 X axis and sync with all plots.
How do I make sure the plot area height is the same in all plots?
Right now, I use row_ratios as a workaround to match them approximately but it doesn't seem as proper solution, provided I don't know how labels are calculated and it breaks on resize.
`std::vector row_ratios(2, 100);
row_ratios[0] = 150;
if (ImPlot::BeginSubplots("test", 2, 1, glm::vec2(-1), subplotFlags, row_ratios.data())) {`
Beta Was this translation helpful? Give feedback.
All reactions