回答編集履歴

1

追記

2021/06/02 12:09

投稿

can110
can110

スコア38266

test CHANGED
@@ -25,3 +25,27 @@
25
25
  ```
26
26
 
27
27
  ![イメージ説明](e909f7aba91b1c80fccfd725c557cef6.png)
28
+
29
+
30
+
31
+ あるいは以下のように任意のフォーマットを指定することもできます。
32
+
33
+ ```Python
34
+
35
+ ```Python
36
+
37
+
38
+
39
+ #plt.ticklabel_format(style='plain',axis='y')
40
+
41
+ axes = plt.gca()
42
+
43
+ axes.yaxis.set_major_formatter(mpl.ticker.StrMethodFormatter('{x:,.0f}'))
44
+
45
+ plt.bar(x, y)
46
+
47
+
48
+
49
+ ```
50
+
51
+ ![イメージ説明](f4b2e8f46e3dbb92dfcffc8da0d7b124.png)