Skip to content

Commit f3ea004

Browse files
Merge pull request #135 from Zengit123/patch-1
Reset axis_type directions when clearing axes_type
2 parents 36d8dc6 + 554aaa7 commit f3ea004

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/matplot/core/axes_type.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,9 @@ namespace matplot {
22142214
y_axis_.limits_mode_auto(true);
22152215
y2_axis_.limits_mode_auto(true);
22162216
z_axis_.limits_mode_auto(true);
2217+
axes_type::x_axis().reverse(false);
2218+
axes_type::y_axis().reverse(false);
2219+
minor_grid(false);
22172220
touch();
22182221
}
22192222

@@ -5416,4 +5419,4 @@ namespace matplot {
54165419
parent_->backend_->draw_path(cx,cy,color);
54175420
}
54185421

5419-
} // namespace matplot
5422+
} // namespace matplot

0 commit comments

Comments
 (0)