From 677b1640bac2b4c0e71f82db1a8e4f65d4bb2157 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Thu, 2 Jan 2025 17:37:07 +0100 Subject: [PATCH] Update plotter.py --- shaketune/graph_creators/plotter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shaketune/graph_creators/plotter.py b/shaketune/graph_creators/plotter.py index d3a7a8e..80ec3f9 100644 --- a/shaketune/graph_creators/plotter.py +++ b/shaketune/graph_creators/plotter.py @@ -867,7 +867,8 @@ def plot_input_shaper_graph(self, data): for shaper in shaper_table_data['shapers'] ] - table = plt.table(cellText=table_data, colLabels=columns, bbox=[1.100, 0.535, 0.830, 0.240], cellLoc='center') + height = 0.048 * len(table_data) + table = plt.table(cellText=table_data, colLabels=columns, bbox=[1.100, 0.535, 0.830, height], cellLoc='center') table.auto_set_font_size(False) table.set_fontsize(10) table.auto_set_column_width([0, 1, 2, 3, 4])