File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,9 @@ def gray_from_float_rgba():
205
205
assert_raises (ValueError , gray_from_float_rgba )
206
206
207
207
def test_light_source_shading_color_range ():
208
- # see also http://matplotlib.org/examples/pylab_examples/shading_example.html
208
+ # see also
209
+ #http://matplotlib.org/examples/pylab_examples/shading_example.html
210
+
209
211
from matplotlib .colors import LightSource
210
212
211
213
norm = mcolors .Normalize (vmin = 0 , vmax = 50 )
@@ -217,7 +219,7 @@ def test_light_source_shading_color_range():
217
219
# shade data, creating an rgb array.
218
220
rgb = ls .shade (Z , plt .cm .jet , norm = norm )
219
221
# plot un-shaded and shaded images.
220
- plt .figure (figsize = (12 ,5 ))
222
+ plt .figure (figsize = (12 , 5 ))
221
223
plt .subplot (121 )
222
224
plt .imshow (Z , cmap = plt .cm .jet , norm = norm )
223
225
plt .title ('imshow' )
You can’t perform that action at this time.
0 commit comments