API reference¶
Relational plots¶
Figure-level interface for drawing relational plots onto a FacetGrid. |
|
Draw a scatter plot with possibility of several semantic groupings. |
|
Draw a line plot with possibility of several semantic groupings. |
Distribution plots¶
Figure-level interface for drawing distribution plots onto a FacetGrid. |
|
Plot univariate or bivariate histograms to show distributions of datasets. |
|
Plot univariate or bivariate distributions using kernel density estimation. |
|
Plot empirical cumulative distribution functions. |
|
Plot marginal distributions by drawing ticks along the x and y axes. |
|
DEPRECATED: Flexibly plot a univariate distribution of observations. |
Categorical plots¶
Figure-level interface for drawing categorical plots onto a FacetGrid. |
|
Draw a scatterplot where one variable is categorical. |
|
Draw a categorical scatterplot with non-overlapping points. |
|
Draw a box plot to show distributions with respect to categories. |
|
Draw a combination of boxplot and kernel density estimate. |
|
Draw an enhanced box plot for larger datasets. |
|
Show point estimates and confidence intervals using scatter plot glyphs. |
|
Show point estimates and confidence intervals as rectangular bars. |
|
Show the counts of observations in each categorical bin using bars. |
Regression plots¶
Plot data and regression model fits across a FacetGrid. |
|
Plot data and a linear regression model fit. |
|
Plot the residuals of a linear regression. |
Matrix plots¶
Plot rectangular data as a color-encoded matrix. |
|
Plot a matrix dataset as a hierarchically-clustered heatmap. |
Multi-plot grids¶
Pair grids¶
Plot pairwise relationships in a dataset. |
|
Subplot grid for plotting pairwise relationships in a dataset. |
Themeing¶
Set aspects of the visual theme for all matplotlib and seaborn plots. |
|
Get the parameters that control the general style of the plots. |
|
Set the parameters that control the general style of the plots. |
|
Get the parameters that control the scaling of plot elements. |
|
Set the parameters that control the scaling of plot elements. |
|
Change how matplotlib color shorthands are interpreted. |
|
Restore all RC params to default settings. |
|
Restore all RC params to original settings (respects custom rc). |
|
Alias for |
Color palettes¶
Set the matplotlib color cycle using a seaborn palette. |
|
Return a list of colors or continuous colormap defining a palette. |
|
Get a set of evenly spaced colors in HUSL hue space. |
|
Get a set of evenly spaced colors in HLS hue space. |
|
Make a sequential palette from the cubehelix system. |
|
Make a sequential palette that blends from dark to |
|
Make a sequential palette that blends from light to |
|
Make a diverging palette between two HUSL colors. |
|
Make a palette that blends between a list of colors. |
|
Make a palette with color names from the xkcd color survey. |
|
Make a palette with color names from Crayola crayons. |
|
Return discrete colors from a matplotlib palette. |
Palette widgets¶
Select a palette from the ColorBrewer set. |
|
Launch an interactive widget to create a sequential cubehelix palette. |
|
Launch an interactive widget to create a light sequential palette. |
|
Launch an interactive widget to create a dark sequential palette. |
|
Launch an interactive widget to choose a diverging color palette. |
Utility functions¶
Remove the top and right spines from plot(s). |
|
Recreate a plot’s legend at a new location. |
|
Return a fully saturated color with the same hue. |
|
Decrease the saturation channel of a color by some percent. |
|
Independently manipulate the h, l, or s channels of a color. |
|
Load an example dataset from the online repository (requires internet). |
|
Report available example datasets, useful for reporting issues. |
|
Return a path to the cache directory for example datasets. |