Skip to content

Commit

Permalink
ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Lichtman committed Nov 17, 2023
1 parent 10b25dd commit decee7f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions examples/phaser/RADAR_FFT_Waterfall.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,19 @@ def UiComponents(self):
self.waterfall.addItem(self.imageitem)
# Use a viridis colormap
pos = np.array([0.0, 0.25, 0.5, 0.75, 1.0])
color = np.array([[68, 1, 84,255], [59, 82, 139,255], [33, 145, 140,255], [94, 201, 98,255], [253, 231, 37,255]], dtype=np.ubyte)
color = np.array(
[
[68, 1, 84, 255],
[59, 82, 139, 255],
[33, 145, 140, 255],
[94, 201, 98, 255],
[253, 231, 37, 255],
],
dtype=np.ubyte,
)
lut = pg.ColorMap(pos, color).getLookupTable(0.0, 1.0, 256)
self.imageitem.setLookupTable(lut)
self.imageitem.setLevels([0,1])
self.imageitem.setLevels([0, 1])
# self.imageitem.scale(0.35, sample_rate / (N)) # this is deprecated -- we have to use setTransform instead
tr = QtGui.QTransform()
tr.scale(0.35, sample_rate / (N))
Expand Down

0 comments on commit decee7f

Please sign in to comment.