Skip to content

Commit fdcae88

Browse files
authored
Fix axis error in axes_type::ylim()
In axes_type::ylim(), x_axis_ should be replaced with y_axis_. Guess this was a copy-past error.
1 parent 68185b7 commit fdcae88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/matplot/core/axes_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,7 @@ namespace matplot {
21322132
}
21332133

21342134
std::array<double, 2> axes_type::ylim() const {
2135-
if (x_axis_.limits_mode_auto()) {
2135+
if (y_axis_.limits_mode_auto()) {
21362136
auto [xmin, xmax, ymin, ymax] = this->child_limits();
21372137
return std::array<double, 2>{ymin, ymax};
21382138
} else {

0 commit comments

Comments
 (0)