From a28e6eb1de1bf75c68c59a05097c951460b1b545 Mon Sep 17 00:00:00 2001 From: Kelly W Date: Thu, 19 Sep 2024 14:39:33 -0700 Subject: [PATCH] Fix the date display on analysis graphs #464 --- src/view/frm_analysis_explorer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/frm_analysis_explorer.py b/src/view/frm_analysis_explorer.py index e0680816..db8e36e5 100644 --- a/src/view/frm_analysis_explorer.py +++ b/src/view/frm_analysis_explorer.py @@ -177,6 +177,7 @@ def plot_metric_over_time(self, metric_id): ax.set_ylabel(metric_name) ax.set_xlabel('Time') ax.set_title(f'{metric_name} Over Time') + plt.setp(ax.get_xticklabels(), rotation=30, horizontalalignment='right', fontsize='x-small') self.plot.draw() def plot_metric_over_riverscape(self, metric_id): @@ -299,7 +300,7 @@ def setupUi(self): self.cmbSampleFrameFeature.setEnabled(False) self.grid.addWidget(self.cmbSampleFrameFeature, 5, 1) - self.plot = FigureCanvas(Figure(figsize=(5, 3))) + self.plot = FigureCanvas(Figure()) self.vlayout.addWidget(self.plot)