Python Seaborn Drawing
[Email protected] 2017.08.02
There are too many ways to draw, I do not know what the situation with the good?
These things are seaborn used to draw according to the loaded data, matplotlib can also draw
Import Seaborn as SNS
Sns.set (style= "Whitegrid", Color_codes=true)
This is the property that sets the artboard
Distplot ()
Lmplot ()
Kdeplot () Draw curve, parabola
Residplot residual curve
Jointplot () Overlay diagram
Rugplot ()
Swarmplot ()
BoxPlot ()
Violinplot ()
Barplot ()
Countplot ()
Pointplot ()
Factorplot ()
Data= "" #load data from DF,SVN ect.
Hue= "" #分组, such as several statistics (no adult, male, female)
Kind= "" #画图的类别, main diagram, line chart, point chart
Sns.stripplot () Put the data in, according to certain characteristics of the painting,
Anscombe = Sns.load_dataset ("Anscombe") # ge Zhong Cishu feng bu
Sns.lmplot (x= "x", y= "Y", data=anscombe.query ("DataSet = = ' I '"), Ci=none, scatter_kws={"s": 80})
Sns.lmplot (x= "x", y= "Y", data=anscombe.query ("DataSet = = ' II '"), Ci=none, scatter_kws={"s": 80})
Python Seaborn Drawing