style: увеличена толщина границ ROI для удобства взаимодействия

This commit is contained in:
Andrew 2024-12-18 13:03:30 +03:00
parent b73eba7f7e
commit 7c0db070c9
2 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ class BasePlotWidget:
x_downsampled, y_downsampled = self._downsample_data(x, y, max_points=1000) x_downsampled, y_downsampled = self._downsample_data(x, y, max_points=1000)
navigator.plot(x_downsampled, y_downsampled, pen=signal["pen"], name=signal["name"]) navigator.plot(x_downsampled, y_downsampled, pen=signal["pen"], name=signal["name"])
ROI_region = pg.LinearRegionItem(values=time_region, movable=True, brush=pg.mkBrush(0, 0, 255, 100)) ROI_region = pg.LinearRegionItem(values=time_region, movable=True, brush=pg.mkBrush(0, 0, 255, 100), pen=pg.mkPen(width=4))
ROI_region.setBounds([0, x.iloc[-1]]) ROI_region.setBounds([0, x.iloc[-1]])
navigator.addItem(ROI_region) navigator.addItem(ROI_region)
navigator.getPlotItem().getViewBox().setLimits(xMin=0, xMax=x.iloc[-1]) navigator.getPlotItem().getViewBox().setLimits(xMin=0, xMax=x.iloc[-1])