From a660b1bb74932a53fcc04e4f2a70affbaa813fbc Mon Sep 17 00:00:00 2001 From: Conor Finn <conor.finn@stfc.ac.uk> Date: Mon, 27 Jan 2020 09:47:24 +0000 Subject: [PATCH] RE #27724 Fix calib plotting style According to the requests of the Engineering Diffraction scientists. --- .../gui/engineering_diffraction/tabs/calibration/model.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/Engineering/gui/engineering_diffraction/tabs/calibration/model.py b/scripts/Engineering/gui/engineering_diffraction/tabs/calibration/model.py index 929639cbfd3..c399beaf6cf 100644 --- a/scripts/Engineering/gui/engineering_diffraction/tabs/calibration/model.py +++ b/scripts/Engineering/gui/engineering_diffraction/tabs/calibration/model.py @@ -202,7 +202,7 @@ class CalibrationModel(object): plot_bank_2 = fig.add_subplot(gs[1], projection="mantid") for ax, ws, bank in zip([plot_bank_1, plot_bank_2], [bank_1_ws, bank_2_ws], [1, 2]): - ax.plot(ws, wkspIndex=0, linestyle="--", marker="o", markersize="3") + ax.plot(ws, wkspIndex=0, linestyle="", marker="o", markersize="3") ax.plot(ws, wkspIndex=1, linestyle="--", marker="o", markersize="3") ax.set_title("Engg Gui Difc Zero Peaks Bank " + str(bank)) ax.legend(("Peaks Fitted", "DifC/TZero Fitted Straight Line")) @@ -213,12 +213,13 @@ class CalibrationModel(object): def _plot_difc_tzero_single_bank_or_custom(bank): bank_ws = Ads.retrieve("engggui_difc_zero_peaks_bank_" + str(bank)) - ax = plot([bank_ws], [0, 1], + ax = plot([bank_ws], [0], plot_kwargs={ - "linestyle": "--", + "linestyle": "", "marker": "o", "markersize": "3" }).gca() + ax.plot(bank_ws, wkspIndex=1, linestyle="--", marker="o", markersize="3") ax.set_title("Engg Gui Difc Zero Peaks Bank " + str(bank)) ax.legend(("Peaks Fitted", "DifC/TZero Fitted Straight Line")) ax.set_xlabel("Expected Peaks Centre(dSpacing, A)") -- GitLab