API reference#
Objects interface#
Plot object#
An interface for declaratively specifying statistical graphics. |
Mark objects#
Dot marks
A mark suitable for dot plots or less-dense scatterplots. |
|
A dot mark defined by strokes to better handle overplotting. |
Line marks
A mark connecting data points with sorting along the orientation axis. |
|
A faster but less-flexible mark for drawing many lines. |
|
A mark connecting data points in the order they appear. |
|
A faster but less-flexible mark for drawing many paths. |
|
A line mark drawn as an oriented segment for each datapoint. |
|
An oriented line mark drawn between min/max values. |
Bar marks
A bar mark drawn between baseline and data values. |
|
A faster bar mark with defaults more suitable for histograms. |
Fill marks
A fill mark drawn from a baseline to data values. |
|
A fill mark representing an interval between values. |
Text marks
A textual mark to annotate or represent data values. |
Stat objects#
Aggregate data along the value axis using given method. |
|
Calculate a point estimate and error bar interval. |
|
Count distinct observations within groups. |
|
Bin observations, count them, and optionally normalize or cumulate. |
|
Compute a univariate kernel density estimate. |
|
Replace observations with percentile values. |
|
Fit a polynomial of the given order and resample data onto predicted curve. |
Move objects#
Displacement and narrowing of overlapping marks along orientation axis. |
|
Random displacement along one or both axes to reduce overplotting. |
|
Divisive scaling on the value axis after aggregating within groups. |
|
Displacement of overlapping bar or area marks along the value axis. |
|
Displacement of all marks with the same magnitude / direction. |
Scale objects#
A scale with a discrete domain of True and False values. |
|
A numeric scale supporting norms and functional transforms. |
|
A categorical scale without relative importance / magnitude. |
|
A scale for date/time data. |
Base classes#
Base class for objects that visually represent data. |
|
Base class for objects that apply statistical transformations. |
|
Base class for objects that apply simple positional transforms. |
|
Base class for objects that map data values to visual properties. |
Function interface#
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 |
Categorical plots#
Figure-level interface for drawing categorical plots onto a FacetGrid. |
|
Draw a categorical scatterplot using jitter to reduce overplotting. |
|
Draw a categorical scatterplot with points adjusted to be non-overlapping. |
|
Draw a box plot to show distributions with respect to categories. |
|
Draw a patch representing a KDE and add observations or box plot statistics. |
|
Draw an enhanced box plot for larger datasets. |
|
Show point estimates and errors using lines with markers. |
|
Show point estimates and errors 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. |
|