rougier / scientific-visualization-book

An open access book on scientific visualization using python and matplotlib
https://www.labri.fr/perso/nrougier/
Other
10.72k stars 993 forks source link

The collage example at page 25 with some images doesn't work #50

Closed sdoro closed 2 years ago

sdoro commented 2 years ago

The first function instruction of imshow has a problem because the length t-uple ranges between 2 and 3. We have resolved the problem by replacing the line:

height, width = I.shape

with:

height, width = I.shape[0], I.shape[1]

bye

ps. What a great book! :-)

rougier commented 2 years ago

Thanks. Can you make a PR?

sdoro commented 2 years ago

Thx