回答編集履歴

1

コード追加

2019/07/31 06:23

投稿

can110
can110

スコア38266

test CHANGED
@@ -1,3 +1,33 @@
1
1
  `set_xlim`などの**関数に値を代入**してしまっています。
2
2
 
3
3
  `axL1.set_xlim=([0,1.50])`→`axL1.set_xlim(0,1.50)`のように修正ください。
4
+
5
+
6
+
7
+ 以下、単純な使用例です。
8
+
9
+ ```Python
10
+
11
+ import matplotlib.pyplot as plt
12
+
13
+
14
+
15
+ x, y = [0.0,0.5,1.0], [0.0,0.5,1.0]
16
+
17
+
18
+
19
+ fig, ([axL1,axR1],[axL2,axR2]) = plt.subplots(nrows=2, ncols=2, figsize=(6,6))
20
+
21
+
22
+
23
+ axL1.scatter(x, y, s=20, alpha=1)
24
+
25
+ axL1.set_xlim(0,1.50)
26
+
27
+ axL1.set_ylim(0,2.50)
28
+
29
+ plt.show()
30
+
31
+ ```
32
+
33
+ ![![イメージ説明](7b58411ffca69de395a95e0503cb4c21.png)](897654f34a7bb1e0f4250e727114bdf1.png)