style: увеличена толщина границ ROI для удобства взаимодействия
This commit is contained in:
parent
b73eba7f7e
commit
7c0db070c9
Binary file not shown.
@ -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])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user