Skip to content

Commit

Permalink
#30 fix GraphicsWindow deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaiGorordo committed Jan 19, 2022
1 parent c6ed745 commit 66f16c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readData_AWR1843.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ def update():

# Set the plot
pg.setConfigOption('background','w')
win = pg.GraphicsWindow(title="2D scatter plot")
win = pg.GraphicsLayoutWidget(title="2D scatter plot")
p = win.addPlot()
p.setXRange(-0.5,0.5)
p.setYRange(0,1.5)
p.setLabel('left',text = 'Y position (m)')
p.setLabel('bottom', text= 'X position (m)')
s = p.plot([],[],pen=None,symbol='o')
win.show()

# Main loop
detObj = {}
Expand Down

0 comments on commit 66f16c2

Please sign in to comment.