Skip to content

Commit

Permalink
fix: set autodownsample off for colorbar
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Apr 8, 2024
1 parent e626bba commit 256bf2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/erlab/interactive/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ def __init__(
self.vb.setMouseEnabled(x=False, y=True)

self._colorbar = pg.ImageItem(
np.linspace(0, 1, 4096).reshape((-1, 1)), axisOrder="row-major"
np.linspace(0, 1, 4096).reshape((-1, 1)),
axisOrder="row-major",
autoDownsample=False,
)
self.addItem(self._colorbar)

Expand Down

0 comments on commit 256bf2d

Please sign in to comment.