{
  "name": "Violin plot defaults documented by ggplot2, seaborn and matplotlib",
  "description": "Default settings that change how a violin plot looks, taken from the current reference pages of three plotting libraries: bandwidth rule, how far the curve extends past the data, and which marks are drawn inside.",
  "page": "https://casrai.org/guides/violin-graphs",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-26T16:40:00Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Software",
      "unit": "",
      "description": ""
    },
    {
      "name": "Bandwidth default",
      "unit": "",
      "description": ""
    },
    {
      "name": "Extent of the curve",
      "unit": "",
      "description": ""
    },
    {
      "name": "Inner or extra marks by default",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Software": "ggplot2 geom_violin",
      "Bandwidth default": "Gaussian kernel, bw nrd0, adjust 1",
      "Extent of the curve": "trim = TRUE: tails trimmed to the range of the data",
      "Inner or extra marks by default": "Quantiles computed (25/50/75) but lines hidden by default"
    },
    {
      "Software": "seaborn 0.13.2 violinplot",
      "Bandwidth default": "bw_method scott (scale factor times SD within group)",
      "Extent of the curve": "cut = 2: extends 2 bandwidths past the extreme points; 0 keeps the data range",
      "Inner or extra marks by default": "inner = box (also quart, point, stick, None)"
    },
    {
      "Software": "matplotlib Axes.violinplot",
      "Bandwidth default": "Gaussian KDE, bw_method scott",
      "Extent of the curve": "Filled area extends to the entire data range (min to max)",
      "Inner or extra marks by default": "Extrema lines on (showextrema True); median and mean lines off"
    }
  ],
  "sources": [
    {
      "title": "ggplot2 reference: geom_violin",
      "url": "https://ggplot2.tidyverse.org/reference/geom_violin.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "seaborn 0.13.2: seaborn.violinplot",
      "url": "https://seaborn.pydata.org/generated/seaborn.violinplot.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "Matplotlib: Axes.violinplot",
      "url": "https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.violinplot.html",
      "accessed": "2026-11-15"
    }
  ]
}