回答編集履歴

1

修正

2021/11/26 07:26

投稿

bsdfan
bsdfan

スコア4774

test CHANGED
@@ -7,8 +7,6 @@
7
7
  import pandas as pd
8
8
 
9
9
  import matplotlib.pyplot as plt
10
-
11
- from matplotlib.ticker import ScalarFormatter
12
10
 
13
11
 
14
12
 
@@ -30,9 +28,7 @@
30
28
 
31
29
 
32
30
 
33
- ax.yaxis.set_major_formatter(ScalarFormatter(useMathText=True))
34
-
35
- ax.ticklabel_format(style="sci", axis="y", scilimits=(4, 4))
31
+ ax.ticklabel_format(style="sci", axis="y", scilimits=(4, 4), useMathText=True)
36
32
 
37
33
 
38
34