We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c1e440 commit 05b6b37Copy full SHA for 05b6b37
1 file changed
datalab/gui/panel/base.py
@@ -2980,6 +2980,15 @@ def get_roi_editor_output(
2980
source_panel=self,
2981
size=self.get_dialog_size(),
2982
)
2983
+ # Propagate the source plot axis scales (e.g. log) to the ROI editor
2984
+ # so that signals/images displayed with non-linear scales keep the same
2985
+ # representation in the ROI editor dialog (see issue: ROI editor was
2986
+ # always opening with default lin-lin scales).
2987
+ src_plot = self.plothandler.plot
2988
+ roi_editor.get_plot().set_scales(
2989
+ src_plot.get_axis_scale("bottom"),
2990
+ src_plot.get_axis_scale("left"),
2991
+ )
2992
if exec_dialog(roi_editor):
2993
return roi_editor.get_roieditor_results()
2994
return None
0 commit comments