8000 Update lib/matplotlib/backends/qt_editor/figureoptions.py · matplotlib/matplotlib@372a837 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 372a837

Browse files
chahak13QuLogic
andauthored
Update lib/matplotlib/backends/qt_editor/figureoptions.py
Use private method of `axis` instead of using `getattr` on `axes` to set limits. Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 53b65e4 commit 372a837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def apply_callback(data):
199199
if axis.get_scale() != axis_scale:
200200
getattr(axes, f"set_{name}scale")(axis_scale)
201201

202-
getattr(axes, f"set_{name}lim")(axis_min, axis_max)
202+
axis._set_lim(axis_min, axis_max, auto=False)
203203
axis.set_label_text(axis_label)
204204

205205
# Restore the unit data

0 commit comments

Comments
 (0)
0