From 329b932fc2703a419085daa232e049f8bf614d50 Mon Sep 17 00:00:00 2001 From: Bjarne Vincent Date: Fri, 10 Oct 2025 13:07:29 +0200 Subject: [PATCH] Changed the x-label of the PSD plots from microns to meters, as the particle radii in the input spreadsheets are given in meters. --- View/sample_data_tab.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/View/sample_data_tab.py b/View/sample_data_tab.py index 20a5466..7fcfa81 100644 --- a/View/sample_data_tab.py +++ b/View/sample_data_tab.py @@ -1745,12 +1745,12 @@ class SampleDataTab(QWidget): stg.frac_vol_fine[profil_position_num, :], color=color_plot) self.axis_plot_PSD[0].set_xscale('log') - self.axis_plot_PSD[0].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[0].set_xlabel('Radius ($m$)') self.axis_plot_PSD[0].set_ylabel('Class size volume fraction') self.axis_plot_PSD[1].plot() self.axis_plot_PSD[1].set_xscale('log') - self.axis_plot_PSD[1].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[1].set_xlabel('Radius ($m$)') self.axis_plot_PSD[1].set_ylabel('Class size volume fraction') elif self.combobox_PSD_plot.currentIndex() == 1: @@ -1760,12 +1760,12 @@ class SampleDataTab(QWidget): stg.frac_vol_fine_cumul[profil_position_num, :], color=color_plot) self.axis_plot_PSD[0].set_xscale('log') - self.axis_plot_PSD[0].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[0].set_xlabel('Radius ($m$)') self.axis_plot_PSD[0].set_ylabel('Cumulative size volume fraction') self.axis_plot_PSD[1].plot() self.axis_plot_PSD[1].set_xscale('log') - self.axis_plot_PSD[1].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[1].set_xlabel('Radius ($m$)') self.axis_plot_PSD[1].set_ylabel('Class size volume fraction') self.figure_plot_PSD.canvas.draw_idle() @@ -1784,14 +1784,14 @@ class SampleDataTab(QWidget): self.axis_plot_PSD[0].plot() self.axis_plot_PSD[0].set_xscale('log') - self.axis_plot_PSD[0].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[0].set_xlabel('Radius ($m$)') self.axis_plot_PSD[0].set_ylabel('Class size volume fraction') self.axis_plot_PSD[1].plot(stg.radius_grain_sand, stg.frac_vol_sand[profil_position_num, :], color=color_plot) self.axis_plot_PSD[1].set_xscale('log') - self.axis_plot_PSD[1].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[1].set_xlabel('Radius ($m$)') self.axis_plot_PSD[1].set_ylabel('Class size volume fraction') elif self.combobox_PSD_plot.currentIndex() == 1: @@ -1800,14 +1800,14 @@ class SampleDataTab(QWidget): self.axis_plot_PSD[0].plot() self.axis_plot_PSD[0].set_xscale('log') - self.axis_plot_PSD[0].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[0].set_xlabel('Radius ($m$)') self.axis_plot_PSD[0].set_ylabel('Cumulative size volume fraction') self.axis_plot_PSD[1].plot(stg.radius_grain_sand, stg.frac_vol_sand_cumul[profil_position_num, :], color=color_plot) self.axis_plot_PSD[1].set_xscale('log') - self.axis_plot_PSD[1].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[1].set_xlabel('Radius ($m$)') self.axis_plot_PSD[1].set_ylabel('Cumulative size volume fraction') self.figure_plot_PSD.canvas.draw_idle() @@ -1829,7 +1829,7 @@ class SampleDataTab(QWidget): stg.frac_vol_fine[profil_position_num_fine, :], color=color_plot_fine) self.axis_plot_PSD[0].set_xscale('log') - self.axis_plot_PSD[0].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[0].set_xlabel('Radius ($m$)') self.axis_plot_PSD[0].set_ylabel('Class size volume fraction') for profil_position_num_sand, color_plot_sand in zip(position_list_sand, color_list_sand): @@ -1838,7 +1838,7 @@ class SampleDataTab(QWidget): stg.frac_vol_sand[profil_position_num_sand, :], color=color_plot_sand) self.axis_plot_PSD[1].set_xscale('log') - self.axis_plot_PSD[1].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[1].set_xlabel('Radius ($m$)') self.axis_plot_PSD[1].set_ylabel('Class size volume fraction') elif self.combobox_PSD_plot.currentIndex() == 1: @@ -1848,7 +1848,7 @@ class SampleDataTab(QWidget): stg.frac_vol_fine_cumul[profil_position_num_fine, :], color=color_plot_fine) self.axis_plot_PSD[0].set_xscale('log') - self.axis_plot_PSD[0].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[0].set_xlabel('Radius ($m$)') self.axis_plot_PSD[0].set_ylabel('Cumulative size volume fraction') for profil_position_num_sand, color_plot_sand in zip(position_list_sand, color_list_sand): @@ -1856,7 +1856,7 @@ class SampleDataTab(QWidget): stg.frac_vol_sand_cumul[profil_position_num_sand, :], color=color_plot_sand) self.axis_plot_PSD[1].set_xscale('log') - self.axis_plot_PSD[1].set_xlabel('Radius ($\mu m$)') + self.axis_plot_PSD[1].set_xlabel('Radius ($m$)') self.axis_plot_PSD[1].set_ylabel('Cumulative size volume fraction') self.figure_plot_PSD.canvas.draw_idle()