Skip to content

Commit

Permalink
Fix the date display on analysis graphs #464
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead authored and philipbaileynar committed Sep 20, 2024
1 parent c952722 commit a28e6eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view/frm_analysis_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit a28e6eb

Please sign in to comment.