回答編集履歴

1

回答を修正

2019/02/20 06:54

投稿

magichan
magichan

スコア15898

test CHANGED
@@ -1,4 +1,6 @@
1
- ``plt.subplots()`` の引数に ``sharex=True`` およびに ``sharey=True`` を追加してください
1
+ ~~``plt.subplots()`` の引数に ``sharex=True`` およびに ``sharey=True`` を追加してください~~
2
+
3
+ ``plt.subplots()`` の引数に ``sharex='col'`` およびに ``sharey='row'`` を追加してください
2
4
 
3
5
 
4
6
 
@@ -16,7 +18,9 @@
16
18
 
17
19
 
18
20
 
19
- fig, axes = plt.subplots(2, 2, figsize=(8, 8), sharex=True, sharey=True)
21
+ # fig, axes = plt.subplots(2, 2, figsize=(8, 8), sharex=True, sharey=True)
22
+
23
+ fig, axes = plt.subplots(2, 2, figsize=(8, 8), sharex='col', sharey='row')
20
24
 
21
25
 
22
26