Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
BoxWhiskerPlot
  • See Also
    • StemLeafPlot
    • ParetoPlot
  • Related Guides
    • Statistical Plots
  • Tech Notes
    • Statistical Plots Package
    • See Also
      • StemLeafPlot
      • ParetoPlot
    • Related Guides
      • Statistical Plots
    • Tech Notes
      • Statistical Plots Package

BoxWhiskerPlot[data]

creates a box‐and‐whisker plot of the given vector of data.

BoxWhiskerPlot[data1,data2,…]

creates multiple box‐and‐whisker plots.

BoxWhiskerPlot[matrix]

also creates multiple box‐and‐whisker plots, with each column of the matrix used for a separate box.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
BoxExtraSpacing  
BoxLabels  
BoxLineStyle  
Show More Show More
BoxMedianStyle  
BoxOrientation  
BoxOutliers  
BoxOutlierMarkers  
BoxQuantile  
BoxFillingStyle  
See Also
Tech Notes
Related Guides
Cite this Page
OBSOLETE STATISTICAL PLOTS PACKAGE SYMBOL
  • See Also
    • StemLeafPlot
    • ParetoPlot
  • Related Guides
    • Statistical Plots
  • Tech Notes
    • Statistical Plots Package
    • See Also
      • StemLeafPlot
      • ParetoPlot
    • Related Guides
      • Statistical Plots
    • Tech Notes
      • Statistical Plots Package
StatisticalPlots`
StatisticalPlots`

BoxWhiskerPlot

As of Version 8.0, BoxWhiskerPlot has been renamed to BoxWhiskerChart and is part of the built-in Wolfram Language kernel.

BoxWhiskerPlot[data]

creates a box‐and‐whisker plot of the given vector of data.

BoxWhiskerPlot[data1,data2,…]

creates multiple box‐and‐whisker plots.

BoxWhiskerPlot[matrix]

also creates multiple box‐and‐whisker plots, with each column of the matrix used for a separate box.

Details and Options

  • To use BoxWhiskerPlot, you first need to load the Statistical Plots Package using Needs["StatisticalPlots`"].
  • BoxWhiskerPlot creates a plot with a box that spans the distance between two quantiles surrounding the median with lines ("whiskers") that extend to span either the full dataset or the dataset excluding outliers.
  • The default box spans from the 0.25 quantile to the 0.75 quantile.
  • Quantiles used are equivalent to those computed using Quantile.
  • Near outliers are defined as points beyond times the interquantile range from the edge of the box. Far outliers are defined as points beyond three times that range.
  • BoxWhiskerPlot has the same options as Graphics, with the following additions and changes:
  • BoxExtraSpacing 0extra space to place between boxes
    BoxFillingStyle Automaticcolors to use for the boxes
    BoxLabels Automaticlabels for the boxes
    BoxLineStyle Automaticstyles to use for lines in the graph
    BoxMedianStyle Automaticadditional styles for the median line
    BoxOrientation Verticalorientation of the plot
    BoxOutlierMarkers Automaticmarkers for outlier points
    BoxOutliers Nonewhich outliers to indicate
    BoxQuantile 0.25distance of quantile from median for box edges
    FrameTruewhether to put a frame around the plot
  • BoxLineStyle and BoxMedianStyle can be any valid graphics directives for lines.
  • Valid settings for BoxOrientation are Vertical and Horizontal.
  • Valid settings for BoxOutliers are None, Automatic, and All.
  • Valid settings for BoxOutlierMarkers are the same as for PlotMarkers.
  • Valid settings for BoxQuantile are numbers between zero and 0.5.

Examples

open all close all

Basic Examples  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

A box-and-whisker plot for a standard normal sample:

Wolfram Language code: BoxWhiskerPlot[RandomReal[NormalDistribution[0, 1], 100]]

A box-and-whisker plot for a normal sample and a uniform sample:

Wolfram Language code: data1 = RandomReal[NormalDistribution[0, 1], 100]; data2 = RandomReal[{0, 1}, 100];
Wolfram Language code: BoxWhiskerPlot[data1, data2]

Options  (9)

BoxExtraSpacing  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

A default box-and-whisker plot for two datasets:

Wolfram Language code: data1 = RandomReal[NormalDistribution[0, 1], 100]; data2 = RandomReal[{0, 1}, 100];
Wolfram Language code: BoxWhiskerPlot[data1, data2]

Add an additional box width between the plots:

Wolfram Language code: BoxWhiskerPlot[data1, data2, BoxExtraSpacing -> 1]

BoxLabels  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

Give explicit labels for plots:

Wolfram Language code: BoxWhiskerPlot[{1, 3, 2, 5, 6, 5, 10}, {5, 4.5, 6, 3, 7, 5}, BoxLabels -> {"dataset 1", "dataset 2"}]

BoxLineStyle  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

Use dashed rather than solid lines in the plot:

Wolfram Language code: BoxWhiskerPlot[{1, 3, 2, 5, 6, 5, 10}, BoxLineStyle -> Dashed]

BoxMedianStyle  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

Display the median line as a dashed line:

Wolfram Language code: BoxWhiskerPlot[{1, 3, 2, 5, 6, 5, 10}, BoxMedianStyle -> Dashed]

BoxOrientation  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

Orient the graphic horizontally:

Wolfram Language code: BoxWhiskerPlot[{1, 3, 2, 5, 6, 5, 10}, BoxOrientation -> Horizontal]

BoxOutliers  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

Mark near and far outliers identically:

Wolfram Language code: BoxWhiskerPlot[{1, 700, 800, 1100, 1200, 1000, 900, 1000, 2500}, BoxOutliers -> All]

Use triangles for near outliers and squares for far outliers:

Wolfram Language code: BoxWhiskerPlot[{1, 700, 800, 1100, 1200, 1000, 900, 1000, 2500}, BoxOutliers -> Automatic, BoxOutlierMarkers -> {\!\(\* GraphicsBox[ PolygonBox[{{0.31361111111111, 0.569141111111111}, { 0.0202777777777772, 0.0358077777777774}, {0.611388888888888, 0.0358077777777774}}], ImageSize->{19., 16.}, PlotRange->{{0, 1}, {0, 0.61803}}, PlotRegion->{{0., 1.57342657342657}, {0., 1.}}]\), \!\(\* GraphicsBox[RectangleBox[{0, 0}], ImageSize->{11., Automatic}]\)}]

BoxOutlierMarkers  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

Use triangles for near outliers and squares for far outliers:

Wolfram Language code: BoxWhiskerPlot[{1, 700, 800, 1100, 1200, 1000, 900, 1000, 2500}, BoxOutliers -> Automatic, BoxOutlierMarkers -> {\!\(\* GraphicsBox[ PolygonBox[{{0.31361111111111, 0.569141111111111}, { 0.0202777777777772, 0.0358077777777774}, {0.611388888888888, 0.0358077777777774}}], ImageSize->{19., 16.}, PlotRange->{{0, 1}, {0, 0.61803}}, PlotRegion->{{0., 1.57342657342657}, {0., 1.}}]\), \!\(\* GraphicsBox[RectangleBox[{0, 0}], ImageSize->{11., Automatic}]\)}]

BoxQuantile  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

The default covers the middle 50% of the data:

Wolfram Language code: data = RandomReal[NormalDistribution[0, 1], 1000];
Wolfram Language code: BoxWhiskerPlot[data]

Cover the middle 90%:

Wolfram Language code: BoxWhiskerPlot[data, BoxQuantile -> .45]

BoxFillingStyle  (1)

Wolfram Language code: Needs["StatisticalPlots`"]

Use a light gray to shade the box:

Wolfram Language code: BoxWhiskerPlot[{1, 3, 2, 5, 6, 5, 10}, BoxFillingStyle -> GrayLevel[.8]]

See Also

StemLeafPlot  ParetoPlot

Tech Notes

    ▪
  • Statistical Plots Package

Related Guides

    ▪
  • Statistical Plots
Wolfram Research (2007), BoxWhiskerPlot, Wolfram Language function, https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html.

Text

Wolfram Research (2007), BoxWhiskerPlot, Wolfram Language function, https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html.

CMS

Wolfram Language. 2007. "BoxWhiskerPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html.

APA

Wolfram Language. (2007). BoxWhiskerPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html

BibTeX

@misc{reference.wolfram_2026_boxwhiskerplot, author="Wolfram Research", title="{BoxWhiskerPlot}", year="2007", howpublished="\url{https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html}", note=[Accessed: 01-May-2026]}

BibLaTeX

@online{reference.wolfram_2026_boxwhiskerplot, organization={Wolfram Research}, title={BoxWhiskerPlot}, year={2007}, url={https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html}, note=[Accessed: 01-May-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English