From 6a4eb7ac2265d8c894c10268db13ee8eda9bf5b3 Mon Sep 17 00:00:00 2001 From: alfrix Date: Fri, 25 Mar 2022 14:30:13 -0300 Subject: [PATCH] bed_mesh: fix graph out of screen in portrait --- panels/bed_mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/bed_mesh.py b/panels/bed_mesh.py index 9572bd40..05b3a2c1 100644 --- a/panels/bed_mesh.py +++ b/panels/bed_mesh.py @@ -349,7 +349,7 @@ class BedMeshPanel(ScreenPanel): surf = ax.plot_surface(x, y, z, cmap=cm.coolwarm, vmin=-0.1, vmax=0.1) chartBox = ax.get_position() - ax.set_position([chartBox.x0, chartBox.y0+0.1, chartBox.width, chartBox.height]) + ax.set_position([chartBox.x0, chartBox.y0+0.1, chartBox.width*.92, chartBox.height]) ax.set_zlim(z_range[0], z_range[1]) ax.zaxis.set_major_locator(LinearLocator(5))