Ich möchte Plots Nebenhandlungen hinzufügen mitWie Plots Nebenhandlungen hinzufügen matplotlib mit
fig, axarr = plt.subplots(2, 2)
plt.sca(axarr[0, 0])
result = desire_salary.pivot_table('city', 'cult', aggfunc='count')
axarr[0, 0] = result.plot(kind='bar', alpha=0.75, rot=0, label="Presence/ Absence of cultural centre")
axarr[0, 0].set_xlabel("Cultural centre")
axarr[0, 0].set_ylabel("Frequency")
axarr[0, 0].set_title('Salary and culture')
axarr[0, 0].plot(result[[0]], color='red')
plt.sca(axarr[0, 1])
axarr[0, 1] = df.plot()
plt.sca(axarr[1, 0])
plt.show()
Aber man Nebenhandlung hinzugefügt, aber andere nicht. Ich bekomme Was mache ich falsch?
Wie wäre es 'HALTACHSE ersetzt [ 0, 1] = df.plot() 'mit' df.plot (ax = axarr [0, 1]) '? – SparkAndShine