Skip to content

Commit

Permalink
fix: casting error when using integer feature for plot color
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Apr 5, 2023
1 parent 2b5543b commit 448e509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
2.13.3
- fix: casting error when using integer feature for plot color
2.13.2
- docs: don't build PDF on rtd (failed)
- setup: bump dclab from 0.48.2 to 0.48.4 (don't load invalid
Expand Down
1 change: 1 addition & 0 deletions shapeout2/gui/quick_view/qv_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def plot_data(self, rtdc_ds, slot, xax="area_um", yax="deform",
elif self.hue_type == "feature":
fdata = self.rtdc_ds[self.hue_kwargs["feat"]][idx]
fdata -= fdata.min()
fdata = np.array(fdata, dtype=float) # cast int to float
fdata /= fdata.max()
for f in fdata:
brush.append(cmap.mapToQColor(f))
Expand Down

0 comments on commit 448e509

Please sign in to comment.