Skip to content

Commit 37f021f

Browse files
authored
Fix multi-class heatmap plotting overview
1 parent 2f0a143 commit 37f021f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stamp/heatmaps/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def main(
168168
learn.model(feats.unsqueeze(-2), torch.ones((len(feats)))), dim=1
169169
)
170170
scores_2d = vals_to_im(scores, coords // stride).detach()
171-
fig, axs = plt.subplots(nrows=2, ncols=min(2, len(categories)), figsize=(12, 8))
171+
fig, axs = plt.subplots(nrows=2, ncols=max(2, len(categories)), figsize=(12, 8))
172172

173173
show_class_map(
174174
class_ax=axs[0, 1],

0 commit comments

Comments
 (0)