figure: note same-axis-kind assumption in row y fit
This commit is contained in:
1 parent
2b4b316ad8
commit
69f0083fc0
1 file changed
+1
@@ -495,6 +495,7 @@ void Figure::sync_row_y() {
|
|||||||
bounds = any ? Range{std::min(bounds.min, b.min), std::max(bounds.max, b.max)} : b;
|
bounds = any ? Range{std::min(bounds.min, b.min), std::max(bounds.max, b.max)} : b;
|
||||||
any = true;
|
any = true;
|
||||||
}
|
}
|
||||||
|
// The first cell stands in for the row: all cells are assumed to share one y axis kind/padding (the host builds them identically).
|
||||||
if (any && plots_[first].fit_y_bounds(0u, bounds)) target = plots_[first].y_axis(0u).range;
|
if (any && plots_[first].fit_y_bounds(0u, bounds)) target = plots_[first].y_axis(0u).range;
|
||||||
// else: nothing to fit -- keep the range the group had
|
// else: nothing to fit -- keep the range the group had
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user