Skip to content

Commit 34aaa72

Browse files
committed
fix subsample example to use cmap/norm by passing to image wrapper instead of as converter
1 parent 0e1c99f commit 34aaa72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/subsample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def query(
6868
sub = Subsample()
6969
cmap = mpl.colormaps["coolwarm"]
7070
norm = Normalize(-2.2, 2.2)
71-
im = ImageWrapper(sub)
71+
im = ImageWrapper(sub, cmap=cmap, norm=norm)
7272

7373
fig, ax = plt.subplots()
7474
ax.add_artist(im)

0 commit comments

Comments
 (0)