-5
plt.subplots(2,1, figsize=(10,8))
の2つのパラメータを理解できません。 2つのプロットは2ですか?何が約1?plt.subplotsの2つのパラメータを理解するのが難しい
import matplotlib.pyplot as plt
letter_prop = subtable/subtable.sum().astype(float)
fig, axes = plt.subplots(2,1, figsize=(10,8))
letter_prop['M'].plot(kind = 'bar', rot = 0 , ax=axes[0], title="Male")
letter_prop['F'].plot(kind = 'bar', rot = 0 , ax=axes[1], title="Female", legend = False)
ありがとうございます!
ドキュメントを読もうとしましたか? http://matplotlib.org/api/pyplot_api.html?highlight=subplots#matplotlib.pyplot.subplots – DeepSpace