@@ -16,7 +16,7 @@ def display_colorbar():
16
16
rgb = ls .shade (z , cmap )
17
17
18
18
fig , ax = plt .subplots ()
19
- ax .imshow (rgb )
19
+ ax .imshow (rgb , interpolation = 'bilinear' )
20
20
21
21
# Use a proxy artist for the colorbar...
22
22
im = ax .imshow (z , cmap = cmap )
@@ -39,11 +39,11 @@ def avoid_outliers():
39
39
fig , (ax1 , ax2 ) = plt .subplots (ncols = 2 , figsize = (8 , 4.5 ))
40
40
41
41
rgb = ls .shade (z , plt .cm .copper )
42
- ax1 .imshow (rgb )
42
+ ax1 .imshow (rgb , interpolation = 'bilinear' )
43
43
ax1 .set_title ('Full range of data' )
44
44
45
45
rgb = ls .shade (z , plt .cm .copper , vmin = - 10 , vmax = 10 )
46
- ax2 .imshow (rgb )
46
+ ax2 .imshow (rgb , interpolation = 'bilinear' )
47
47
ax2 .set_title ('Manually set range' )
48
48
49
49
fig .suptitle ('Avoiding Outliers in Shaded Plots' , size = 'x-large' )
@@ -62,7 +62,7 @@ def shade_other_data():
62
62
rgb = ls .shade_rgb (cmap (norm (z2 )), z1 )
63
63
64
64
fig , ax = plt .subplots ()
65
- ax .imshow (rgb )
65
+ ax .imshow (rgb , interpolation = 'bilinear' )
66
66
ax .set_title ('Shade by one variable, color by another' , size = 'x-large' )
67
67
68
68
display_colorbar ()
0 commit comments