回答編集履歴
2
説明追加
answer
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
[立体に直すには\mathrmを使う。](http://hydro.iis.u-tokyo.ac.jp/~akira/page/Python/contents/plot/graph/text.html)をお読みください。
|
2
2
|
|
3
|
-
|
3
|
+
- /mathrm という文字がグラフ中にも表示されてしまいます。
|
4
4
|
|
5
|
+
私のところではうまく動いています。```/```ではなく```\```です。
|
6
|
+
|
5
7
|
```python
|
6
8
|
import matplotlib.pyplot as plt
|
7
9
|
fig = plt.figure()
|
1
説明追加
answer
CHANGED
@@ -1,1 +1,14 @@
|
|
1
|
-
[立体に直すには\mathrmを使う。](http://hydro.iis.u-tokyo.ac.jp/~akira/page/Python/contents/plot/graph/text.html)をお読みください。
|
1
|
+
[立体に直すには\mathrmを使う。](http://hydro.iis.u-tokyo.ac.jp/~akira/page/Python/contents/plot/graph/text.html)をお読みください。
|
2
|
+
|
3
|
+
私のところではうまく動いています。不思議ですね。
|
4
|
+
|
5
|
+
```python
|
6
|
+
import matplotlib.pyplot as plt
|
7
|
+
fig = plt.figure()
|
8
|
+
ax = fig.add_subplot(1, 1, 1)
|
9
|
+
ax.plot([1,2,5,2])
|
10
|
+
plt.ylabel("密度[$\mathrm{g/cm^3}$]",fontname='MS Gothic',fontsize=10,labelpad=15)
|
11
|
+
plt.show()
|
12
|
+
```
|
13
|
+
実行結果
|
14
|
+

|