"Lucy","Jack","Rose"] """ kind : str The kind of plot to produce: - 'line' ...
'Vertical Line'])plt.xlabel('X')plt.ylabel('X Squared')plt.subplot(1,2,2)plt.plot(x,-1*...
‘line’ : line plot (default)#折线图‘bar’ : vertical bar plot#条形图‘barh’ : horizontal bar plot#横向条形图‘hist’ : histogram#柱状图‘box’ : boxplot#箱线图‘kde’ : Kernel Density Estimation plot#Kernel 的密度估计图,主要对柱状图添加Kernel 概率密度线‘density’ : same as ‘kde’...
在画完垂直线后,我们将使用plot()函数来画标记,这些标记将是圆形的,最后形成棒棒糖图。 # import modulesfrompandasimport*frommatplotlibimportpyplotasplt# read csv filed=read_csv("company_sales_data.csv")# using subplots() to draw vertical linesfig,axes=plt.subplots()axes.vlines(d['month_number']...
plot.hexbin(x, y[, C,…]) #Hexbin plot DataFrame.plot.hist([by, bins]) #直方图Histogram DataFrame.plot.kde(**kwds) #核密度Kernel Density Estimate plot DataFrame.plot.line([x, y]) #线图Line plot DataFrame.plot.pie([y]) #饼图Pie chart DataFrame.plot.scatter(x, y[, s, c]) ...
‘line’ : line plot (default)#折线图‘bar’ : vertical bar plot#条形图‘barh’ : horizontal bar plot#横向条形图‘hist’ : histogram#柱状图‘box’ : boxplot#箱线图‘kde’ : Kernel Density Estimation plot#Kernel 的密度估计图,主要对柱状图添加Kernel 概率密度线‘density’ : same as ‘kde’...
核密度Kernel Density Estimate plot DataFrame.plot.line([x, y]) 线图Line plot DataFrame.plot.pie([y]) 饼图Pie chart DataFrame.plot.scatter(x, y[, s, c]) 散点图Scatter plot DataFrame.boxplot([column, by, ax, …]) Make a box plot from DataFrame column optionally grouped by some colum...
‘line’ : line plot (default)#折线图 ‘bar’ : vertical bar plot#条形图 ‘barh’ : horizontal bar plot#横向条形图 ‘hist’ : histogram#柱状图 ‘box’ : boxplot#箱线图 ‘kde’ : Kernel Density Estimation plot#Kernel 的密度估计图,主要对柱状图添加Kernel 概率密度线 ...
df2.plot.barh(stacked=True); Histograms df2.plot.hist(alpha=0.5); box df.plot.box(); The color of the box can be customized: color = { ...: "boxes": "DarkGreen", ...: "whiskers": "DarkOrange", ...: "medians": "DarkBlue", ......
'line': line plot (default) 折线图 'bar': vertical bar plot 'barh': horizontal bar plot 'hist': hisogram 直方图 'pie': pie plot 饼状图 'scatter': scatter plot 散点图 5 文件读取与存储 5.1 CSV 1. 读取csv文件-read_csv()