0.11.2
  • Gallery
  • Tutorial
  • API
  • Site
      • Introduction
      • Release notes
      • Installing
      • Example gallery
      • Tutorial
      • API reference
      • Citing
      • Archive
  • Page
      • seaborn.FacetGrid.refline

seaborn.FacetGrid.refline¶

FacetGrid.refline(self, *, x=None, y=None, color='.5', linestyle='--', **line_kws)¶

Add a reference line(s) to each facet.

Parameters
x, ynumeric

Value(s) to draw the line(s) at.

colormatplotlib color

Specifies the color of the reference line(s). Pass color=None to use hue mapping.

linestylestr

Specifies the style of the reference line(s).

line_kwskey, value mappings

Other keyword arguments are passed to matplotlib.axes.Axes.axvline() when x is not None and matplotlib.axes.Axes.axhline() when y is not None.

Returns
FacetGrid instance

Returns self for easy method chaining.

Back to top

© Copyright 2012-2021, Michael Waskom. Created using Sphinx 3.3.1.