回答編集履歴
1
修正
answer
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
```python
|
4
4
|
import pandas as pd
|
5
5
|
import matplotlib.pyplot as plt
|
6
|
-
from matplotlib.ticker import ScalarFormatter
|
7
6
|
|
8
7
|
#グラフ描画
|
9
8
|
x=[0,100]
|
@@ -14,8 +13,7 @@
|
|
14
13
|
|
15
14
|
ax.plot(x,y)
|
16
15
|
|
17
|
-
ax.yaxis.set_major_formatter(ScalarFormatter(useMathText=True))
|
18
|
-
ax.ticklabel_format(style="sci", axis="y", scilimits=(4, 4))
|
16
|
+
ax.ticklabel_format(style="sci", axis="y", scilimits=(4, 4), useMathText=True)
|
19
17
|
|
20
18
|
plt.show()
|
21
19
|
```
|