Skip to content

Commit

Permalink
unhide ImageView roi curves
Browse files Browse the repository at this point in the history
  • Loading branch information
pijyoi committed Oct 8, 2021
1 parent fb809e5 commit 2da769d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyqtgraph/imageview/ImageView.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def __init__(self, parent=None, name="ImageView", view=None, imageItem=None,
self.view.addItem(self.normRoi)
self.normRoi.hide()
self.roiCurves = []
self.roiCurve = self.ui.roiPlot.plot()
self.timeLine = InfiniteLine(0, movable=True)
if getConfigOption('background')=='w':
self.timeLine.setPen((20, 80,80, 200))
Expand Down Expand Up @@ -567,12 +566,12 @@ def roiClicked(self):
if self.ui.roiBtn.isChecked():
showRoiPlot = True
self.roi.show()
#self.ui.roiPlot.show()
self.ui.roiPlot.setMouseEnabled(True, True)
self.ui.splitter.setSizes([int(self.height()*0.6), int(self.height()*0.4)])
self.ui.splitter.handle(1).setEnabled(True)
self.roiCurve.show()
self.roiChanged()
for c in self.roiCurves:
c.show()
self.ui.roiPlot.showAxis('left')
else:
self.roi.hide()
Expand All @@ -588,13 +587,11 @@ def roiClicked(self):
self.ui.roiPlot.setXRange(mn, mx, padding=0.01)
self.timeLine.show()
self.timeLine.setBounds([mn, mx])
self.ui.roiPlot.show()
if not self.ui.roiBtn.isChecked():
self.ui.splitter.setSizes([self.height()-35, 35])
self.ui.splitter.handle(1).setEnabled(False)
else:
self.timeLine.hide()
#self.ui.roiPlot.hide()

self.ui.roiPlot.setVisible(showRoiPlot)

Expand Down

0 comments on commit 2da769d

Please sign in to comment.