回答編集履歴
1
修正
test
CHANGED
@@ -60,19 +60,23 @@
|
|
60
60
|
|
61
61
|
h, w = img.shape[:2]
|
62
62
|
|
63
|
-
fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(6,
|
63
|
+
fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(6, 6), sharex=True)
|
64
64
|
|
65
65
|
ax1.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))
|
66
66
|
|
67
|
+
ax2.plot(np.arange(w), widths)
|
67
68
|
|
68
69
|
|
69
|
-
ax2.plot(np.arange(w), widths)
|
70
70
|
|
71
71
|
ax2.set_ylim(0, h)
|
72
|
+
|
73
|
+
ax1.set_ylabel("y")
|
72
74
|
|
73
75
|
ax2.set_xlabel("x")
|
74
76
|
|
75
77
|
ax2.set_ylabel("width")
|
78
|
+
|
79
|
+
ax2.grid()
|
76
80
|
|
77
81
|
plt.show()
|
78
82
|
|
@@ -84,4 +88,4 @@
|
|
84
88
|
|
85
89
|
|
86
90
|
|
87
|
-
![イメージ説明](8
|
91
|
+
![イメージ説明](ff80ef405d30d9d42c02286e5d46c6e1.jpeg)
|