plotnine.qplot

plotnine.qplot(x=None, y=None, data=None, facets=None, margins=False, geom='auto', xlim=None, ylim=None, log='', main=None, xlab=None, ylab=None, asp=None, **kwargs)[source]

Quick plot

Parameters
xstr | array_like

x aesthetic

ystr | array_like

y aesthetic

datadataframe

Data frame to use (optional). If not specified, will create one, extracting arrays from the current environment.

geomstr | list

geom(s) to do the drawing. If auto, defaults to 'point' if x and y are specified or 'histogram' if only x is specified.

xlimtuple

x-axis limits

ylimtuple

y-axis limits

logstr in {'x', 'y', 'xy'}

Which variables to log transform.

mainstr

Plot title

xlabstr

x-axis label

ylabstr

y-axis label

aspstr | float

The y/x aspect ratio.

**kwargsdict

Arguments passed on to the geom.

Returns
pggplot

ggplot object