Skip to content

Commit d3126b5

Browse files
committed
Add plot_image.py
1 parent 4bc9dc8 commit d3126b5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/image/plot_image.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import sys
2+
import matplotlib.pyplot as plt
3+
import numpy as np
4+
import skimage as ski
5+
6+
from utils import gen_image
7+
8+
name = None
9+
if len(sys.argv) > 1:
10+
name = sys.argv[1]
11+
12+
im = gen_image(name)
13+
14+
fig, ax = plt.subplots()
15+
ax.pcolormesh(im.T)
16+
plt.show()

0 commit comments

Comments
 (0)