Skip to content

Commit 6c4a1a2

Browse files
committed
remove tight layout padding
1 parent 9b413f0 commit 6c4a1a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ratapi/utils/plotting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ def update_plot(self, data):
493493
"""
494494
if self.figure is not None:
495495
self.figure.clf()
496+
497+
self.figure.tight_layout()
496498
plot_ref_sld_helper(
497499
data,
498500
self.figure,
@@ -503,7 +505,6 @@ def update_plot(self, data):
503505
show_legend=self.show_legend,
504506
animated=True,
505507
)
506-
self.figure.tight_layout(pad=1)
507508
self.figure.canvas.draw()
508509
self.bg = self.figure.canvas.copy_from_bbox(self.figure.bbox)
509510
for line in self.figure.axes[0].lines:

0 commit comments

Comments
 (0)