import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
df=pd.read_excel("C:/temp/al3-1.xls")
var=df.groupby('Gender').Sales.sum()
fig=plt.figure()
ax1=fig.add_subplot(1,1,1)
ax1.set_xlabel('Gender')
ax1.set_ylabel('Sum of Sales')
ax1.set_title("Gender wise Sum of Sales")
var.plot(kind='bar')
C:\ProgramData\Anaconda3\envs\python\python.exe C:\Users\kjbne\Desktop\python\散点图.py
进程已结束,退出代码0
请问如何调整才能出现图标呢?
最后加一行,plt.show()