File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
=========================================
5
5
6
6
This example demonstrates how to use the various kwargs
7
- to fully customize box plots. The first figure demostrates
7
+ to fully customize box plots. The first figure demonstrates
8
8
how to remove and add individual components (note that the
9
9
mean is the only value not shown by default). The second
10
- figure demonstrates how the styles of the artists of can
10
+ figure demonstrates how the styles of the artists can
11
11
be customized. It also demonstrates how to set the limit
12
12
of the whiskers to specific percentiles (lower right axes)
13
13
"""
Original file line number Diff line number Diff line change 4
4
===================================
5
5
6
6
This example demonstrates how to pass pre-computed box plot
7
- statistics to the box plot drawer. The first figure demostrates
7
+ statistics to the box plot drawer. The first figure demonstrates
8
8
how to remove and add individual components (note that the
9
9
mean is the only value not shown by default). The second
10
10
figure demonstrates how the styles of the artists can
Original file line number Diff line number Diff line change 7
7
The first plot shows the default style by providing only
8
8
the data. The second plot first limits what matplotlib draws
9
9
with additional kwargs. Then a simplified representation of
10
- a box plot in drawn on top. Lastly, the styles of the artists
10
+ a box plot is drawn on top. Lastly, the styles of the artists
11
11
of the violins are modified.
12
12
"""
13
13
@@ -91,7 +91,7 @@ def adjacent_values(vals):
91
91
for ax in [ax1 , ax2 ]:
92
92
ax .get_xaxis ().set_tick_params (direction = 'out' )
93
93
ax .xaxis .set_ticks_position ('bottom' )
94
- ax .set_xticks ([ x for x in np .arange (1 , len (lab ) + 1 )] )
94
+ ax .set_xticks (np .arange (1 , len (lab ) + 1 ))
95
95
ax .set_xticklabels (lab )
96
96
ax .set_xlim (0.25 , len (lab ) + 0.75 )
97
97
ax .set_xlabel ('Sample name' )
Original file line number Diff line number Diff line change 11
11
A couple of other options to the ``hist`` function are demonstrated.
12
12
Namely, we use the ``normed`` parameter to normalize the histogram and
13
13
a couple of different options to the `cumulative` parameter. Normalizing
14
- a histogram means that the heights bins are scaled such that
14
+ a histogram means that the bin heights are scaled such that
15
15
the total area is 1. Since we're showing a normalized and
16
16
cumulative histogram, the max value at the end of the series is 1.
17
17
The ``normed`` parameter takes a boolean value.
You can’t perform that action at this time.
0 commit comments