Labels and ticks are added to the acoustic recording plot (for visualize sample position)
parent
87a83eddb9
commit
fa479e1dc8
|
|
@ -1332,7 +1332,7 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(stg.time_fine)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
stg.time_fine[i] - 8, stg.depth_fine[i] - .2, "F" + str(i+1),
|
||||
stg.time_fine[i] - 25, stg.depth_fine[i] - .1, "F" + str(i+1),
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
if self.tableWidget_sand.columnCount() > 10:
|
||||
|
|
@ -1344,7 +1344,7 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(stg.time_sand)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
stg.time_sand[i] + 3, stg.depth_sand[i] - .2, "S" + str(i+1),
|
||||
stg.time_sand[i] + 10, stg.depth_sand[i] - .1, "S" + str(i+1),
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
else:
|
||||
|
|
@ -1542,7 +1542,7 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(stg.time_fine)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
stg.time_fine[i] - 8, stg.depth_fine[i] - .2, "F" + str(i+1),
|
||||
stg.time_fine[i] - 25, stg.depth_fine[i] - .1, "F" + str(i+1),
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
if self.tableWidget_sand.columnCount() > 10:
|
||||
|
|
@ -1554,12 +1554,27 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(stg.time_sand)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
stg.time_sand[i] + 3, stg.depth_sand[i] - .2, "S" + str(i+1),
|
||||
stg.time_sand[i] + 10, stg.depth_sand[i] - .1, "S" + str(i+1),
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
1, .85, stg.freq_text[self.combobox_acoustic_data.currentIndex()][self.combobox_frequencies.currentIndex()],
|
||||
fontsize=14, fontweight='bold', fontname="Ubuntu", c="black", alpha=0.5,
|
||||
horizontalalignment='right', verticalalignment='bottom',
|
||||
transform=self.axis_plot_sample_position_on_transect.transAxes)
|
||||
|
||||
self.axis_plot_sample_position_on_transect.tick_params(axis='y', labelrotation=90)
|
||||
self.axis_plot_sample_position_on_transect.tick_params(axis='both', labelsize=8)
|
||||
|
||||
self.axis_plot_sample_position_on_transect.text(.98, .03, "Time",
|
||||
fontsize=10, fontweight='bold', fontname="Ubuntu", c="black", alpha=0.9,
|
||||
horizontalalignment='right', verticalalignment='bottom', rotation='horizontal',
|
||||
transform=self.axis_plot_sample_position_on_transect.transAxes)
|
||||
self.axis_plot_sample_position_on_transect.text(.04, .65, "Depth",
|
||||
fontsize=10, fontweight='bold', fontname="Ubuntu", c="black", alpha=0.9,
|
||||
horizontalalignment='right', verticalalignment='bottom', rotation='vertical',
|
||||
transform=self.axis_plot_sample_position_on_transect.transAxes)
|
||||
|
||||
self.axis_plot_sample_position_on_transect.set_xticks([])
|
||||
self.axis_plot_sample_position_on_transect.set_yticks([])
|
||||
self.figure_plot_sample_position_on_transect.canvas.draw_idle()
|
||||
|
||||
def update_plot_sample_position_on_transect(self):
|
||||
|
|
@ -1585,7 +1600,7 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(time_fine_to_plot)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
time_fine_to_plot[i] - 8, depth_fine_to_plot[i] - .2, "F" + str(i+1),
|
||||
time_fine_to_plot[i] - 25, depth_fine_to_plot[i] - .1, "F" + str(i+1),
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
if self.tableWidget_sand.columnCount() > 10:
|
||||
|
|
@ -1605,7 +1620,7 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(time_sand_to_plot)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
time_sand_to_plot[i] + 3, depth_sand_to_plot[i] - .2, "S" + str(i+1),
|
||||
time_sand_to_plot[i] + 10, depth_sand_to_plot[i] - .1, "S" + str(i+1),
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
else:
|
||||
|
|
@ -1842,7 +1857,7 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(time_fine_to_plot)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
time_fine_to_plot[i] - 8, depth_fine_to_plot[i] - .2, label_fine_to_plot[i],
|
||||
time_fine_to_plot[i] - 25, depth_fine_to_plot[i] - .1, label_fine_to_plot[i],
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
if self.tableWidget_sand.columnCount() > 10:
|
||||
|
|
@ -1864,11 +1879,31 @@ class SampleDataTab(QWidget):
|
|||
|
||||
for i in range(len(time_sand_to_plot)):
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
time_sand_to_plot[i] + 3, depth_sand_to_plot[i] - .2, label_sand_to_plot[i],
|
||||
time_sand_to_plot[i] + 10, depth_sand_to_plot[i] - .1, label_sand_to_plot[i],
|
||||
fontstyle="normal", fontweight="light", fontsize=8)
|
||||
|
||||
self.axis_plot_sample_position_on_transect.set_xticks([])
|
||||
self.axis_plot_sample_position_on_transect.set_yticks([])
|
||||
self.axis_plot_sample_position_on_transect.text(
|
||||
1, .85, stg.freq_text[self.combobox_acoustic_data.currentIndex()][self.combobox_frequencies.currentIndex()],
|
||||
fontsize=14, fontweight='bold', fontname="Ubuntu", c="black", alpha=0.5,
|
||||
horizontalalignment='right', verticalalignment='bottom',
|
||||
transform=self.axis_plot_sample_position_on_transect.transAxes)
|
||||
|
||||
self.axis_plot_sample_position_on_transect.tick_params(axis='y', labelrotation=90)
|
||||
self.axis_plot_sample_position_on_transect.tick_params(axis='both', labelsize=8)
|
||||
|
||||
self.axis_plot_sample_position_on_transect.text(.98, .03, "Time",
|
||||
fontsize=10, fontweight='bold', fontname="Ubuntu", c="black",
|
||||
alpha=0.9,
|
||||
horizontalalignment='right', verticalalignment='bottom',
|
||||
rotation='horizontal',
|
||||
transform=self.axis_plot_sample_position_on_transect.transAxes)
|
||||
self.axis_plot_sample_position_on_transect.text(.04, .65, "Depth",
|
||||
fontsize=10, fontweight='bold', fontname="Ubuntu", c="black",
|
||||
alpha=0.9,
|
||||
horizontalalignment='right', verticalalignment='bottom',
|
||||
rotation='vertical',
|
||||
transform=self.axis_plot_sample_position_on_transect.transAxes)
|
||||
|
||||
self.figure_plot_sample_position_on_transect.canvas.draw_idle()
|
||||
|
||||
# if stg.BS_raw_data.size == 0:
|
||||
|
|
|
|||
Loading…
Reference in New Issue