前提・実現したいこと
ヒストグラムの棒の上に数値を描きたいのですが、うまくいきません。。。
どなたか至急教えていただけないでしょうか。。。
250m number of meshの値をグラフ上に描きたいと思っております。。。
発生している問題・エラーメッセージ
TypeError Traceback (most recent call last)
<ipython-input-43-03b272a1e06e> in <module>()
1 a = plt.hist(df["0"], range=(0.1,30))
2 for y in zip(a):
----> 3 plt.text(a, ha='center', va='bottom')
4 plt.title("2018/08/27 20:05:02 VIL")
5 plt.xlabel("VIL[kg/m2]")
TypeError: text() missing 2 required positional arguments: 'y' and 's'
該当のソースコード
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import csv
from PIL import Image
df = pd.read_csv('./csvfile/ATCmrg20180827_201955.csv','r')
len(df)
a = plt.hist(df["0"], range=(0.1,30))
for y in zip(a):
plt.text(a, ha='center', va='bottom')
plt.title("2018/08/27 20:05:02 VIL")
plt.xlabel("VIL[kg/m2]")
plt.ylabel("250m number of mesh")
plt.savefig("200502.pdf")
plt.show()
どなたかご回答よろしくお願いいたします

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/07 07:28
2019/01/09 01:29
2019/01/09 01:36 編集