Skip to content
Snippets Groups Projects
Commit af6d11ef authored by Lan Dam's avatar Lan Dam
Browse files

TPS: hide axis of legend and spines of channel plots to remove redundant borders in white mode

parent d0971921
No related branches found
No related tags found
1 merge request!136tps scrollbar, label's position, color, height for each
...@@ -224,6 +224,7 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget): ...@@ -224,6 +224,7 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget):
plot_h = self.plotting_axes.get_height( plot_h = self.plotting_axes.get_height(
total_days, bw_plots_distance=0.003, pixel_height=12.1) total_days, bw_plots_distance=0.003, pixel_height=12.1)
ax = self.create_axes(self.plotting_bot, plot_h) ax = self.create_axes(self.plotting_bot, plot_h)
ax.spines[['right', 'left', 'top', 'bottom']].set_visible(False)
ax.text( ax.text(
-0.1, 1.2, -0.1, 1.2,
f"{get_chan_label(chan_id)} {c_data['samplerate']}", f"{get_chan_label(chan_id)} {c_data['samplerate']}",
...@@ -282,6 +283,7 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget): ...@@ -282,6 +283,7 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget):
[self.plotting_l, self.plotting_bot, self.plotting_w, plot_h], [self.plotting_l, self.plotting_bot, self.plotting_w, plot_h],
picker=True picker=True
) )
ax.axis('off')
ax.patch.set_alpha(0) ax.patch.set_alpha(0)
c_labels = self.parent.sel_col_labels c_labels = self.parent.sel_col_labels
clrs = self.parent.color_def # colordef clrs = self.parent.color_def # colordef
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment