Python Seaborn Drawing

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.