This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cs401r_w2016:lab5 [2018/01/25 22:57] wingated |
cs401r_w2016:lab5 [2021/06/30 23:42] (current) |
||
---|---|---|---|
Line 95: | Line 95: | ||
<code python> | <code python> | ||
import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
- | plt.imshow( X.reshape(28,28).T, interpolation='nearest', cmap=matplotlib.cm.gray) | + | plt.imshow( X.reshape(28,28).T, interpolation='nearest', cmap="gray") |
</code> | </code> | ||