Skip to content

Commit 32756d5

Browse files
committed
DOC: add header formatting to stat demos
1 parent bb8143a commit 32756d5

15 files changed

+60
-15
lines changed

examples/statistics/boxplot_color_demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Box plots with custom fill colors.
1+
"""
2+
=================================
3+
Box plots with custom fill colors
4+
=================================
25
36
This plot illustrates how to create two types of box plots
47
(rectangular and notched), and how to fill them with custom

examples/statistics/boxplot_demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo of artist customization in box plots.
1+
"""
2+
=========================================
3+
Demo of artist customization in box plots
4+
=========================================
25
36
This example demonstrates how to use the various kwargs
47
to fully customize box plots. The first figure demostrates

examples/statistics/boxplot_vs_violin_demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Box plot - violin plot comparison.
1+
"""
2+
===================================
3+
Box plot vs. violin plot comparison
4+
===================================
25
36
Note that although violin plots are closely related to Tukey's (1977) box
47
plots, they add useful information such as the distribution of the sample

examples/statistics/bxp_demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo of the boxplot drawer function
1+
"""
2+
===================================
3+
Demo of the boxplot drawer function
4+
===================================
25
36
This example demonstrates how to pass pre-computed box plot
47
statistics to the box plot drawer. The first figure demostrates

examples/statistics/customized_violin_demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo of violin plot customization.
1+
"""
2+
=================================
3+
Demo of violin plot customization
4+
=================================
25
36
This example demonstrates how to fully customize violin plots.
47
The first plot shows the default style by providing only

examples/statistics/errorbar_demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo of the errorbar function.
1+
"""
2+
=============================
3+
Demo of the errorbar function
4+
=============================
25
36
This exhibits the most basic use of of the error bar method.
47
In this case, constant values are provided for both the error

examples/statistics/errorbar_demo_features.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo of the different ways of specifying error bars.
1+
"""
2+
===================================================
3+
Demo of the different ways of specifying error bars
4+
===================================================
25
36
Errors can be specified as a constant value (as shown in
47
`errorbar_demo.py`), or as demonstrated in this example, they can be

examples/statistics/errorbar_limits.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo of how to include upper and lower limits in error bars
1+
"""
2+
===========================================================
3+
Demo of how to include upper and lower limits in error bars
4+
===========================================================
25
36
In matplotlib, errors bars can have "limits". Applying limits to the
47
error bars essentially makes the error unidirectional. Because of that,

examples/statistics/errorbars_and_boxes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo on creating boxes from error bars using PatchCollection
1+
"""
2+
============================================================
3+
Demo on creating boxes from error bars using PatchCollection
4+
============================================================
25
36
In this example, we snazz up a pretty standard error bar plot by adding
47
a rectangle patch defined by the limits of the bars in both the x- and

examples/statistics/histogram_demo_cumulative.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Demo of using histograms to plot a cumulative distribution.
1+
"""
2+
==========================================================
3+
Demo of using histograms to plot a cumulative distribution
4+
==========================================================
25
36
This shows how to plot a cumulative, normalized histogram as a
47
step function as means of visualization the empirical cumulative

0 commit comments

Comments
 (0)