[3e357e]: / hands-on-session-2 / __init__.py

Download this file

12 lines (11 with data), 259 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import matplotlib.pyplot as plt
%matplotlib inline
import mpld3
mpld3.enable_notebook()
def show_inline(image):
f, ax = plt.subplots(1, 1, figsize=(10,10))
ax.grid(False)
ax.set_xticks([])
ax.set_yticks([])
ax.imshow(image)
plt.show()