From 43efd8898612a340640009566a172cf6e98913bd Mon Sep 17 00:00:00 2001 From: "Ryan@SOLARIS_testStation" Date: Fri, 8 Nov 2024 18:15:50 -0500 Subject: [PATCH] plot impovement --- Cleopatra/PlotWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cleopatra/PlotWindow.py b/Cleopatra/PlotWindow.py index 4070600..2c8f2a0 100644 --- a/Cleopatra/PlotWindow.py +++ b/Cleopatra/PlotWindow.py @@ -115,8 +115,9 @@ class FitPlotWindow(QWidget): fitXsecID = list(dict.fromkeys(fitXsecID)) fitHeaders = list(dict.fromkeys(fitHeaders)) + size = len(fitHeaders) - 1 for i , header in enumerate(fitHeaders): - self.ax.text(0.02, 0.10 + 0.05*i, f'Fit-{fitXsecID[i]} : {header}', transform=plt.gca().transAxes, + self.ax.text(0.02, 0.10 + 0.05 * size - 0.05*i, f'Fit-{fitXsecID[i]} : {header}', transform=plt.gca().transAxes, fontsize=12, verticalalignment='bottom', horizontalalignment='left', color='grey')