as
np
(
19680801
)
=
10
=
[
1
,
2
,
4
,
5
,
7
,
8
]
=
[
(
0
,
std
,
size
=
100
)
for
std
in
]
,
=
(
nrows
=
2
,
ncols
=
6
,
figsize
=
(
10
,
4
))
[
0
,
0
]
.
violinplot
(
,
,
points
=
20
,
widths
=
0.3
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
)
[
0
,
0
]
.
set_title
(
'Custom violin 1'
,
fontsize
=
)
[
0
,
1
]
.
violinplot
(
,
,
points
=
40
,
widths
=
0.5
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
bw_method
=
'silverman'
)
[
0
,
1
]
.
set_title
(
'Custom violin 2'
,
fontsize
=
)
[
0
,
2
]
.
violinplot
(
,
,
points
=
60
,
widths
=
0.7
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
bw_method
=
0.5
)
[
0
,
2
]
.
set_title
(
'Custom violin 3'
,
fontsize
=
)
[
0
,
3
]
.
violinplot
(
,
,
points
=
60
,
widths
=
0.7
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
bw_method
=
0.5
,
quantiles
=
[[
0.1
],
[],
[],
[
0.175
,
0.954
],
[
0.75
],
[
0.25
]])
[
0
,
3
]
.
set_title
(
'Custom violin 4'
,
fontsize
=
)
[
0
,
4
]
.
violinplot
(
[
-
1
:],
[
-
1
:],
points
=
60
,
widths
=
0.7
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
quantiles
=
[
0.05
,
0.1
,
0.8
,
0.9
],
bw_method
=
0.5
)
[
0
,
4
]
.
set_title
(
'Custom violin 5'
,
fontsize
=
)
[
0
,
5
]
.
violinplot
(
[
-
1
:],
[
-
1
:],
points
=
60
,
widths
=
0.7
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
quantiles
=
[
0.05
,
0.1
,
0.8
,
0.9
],
bw_method
=
0.5
,
side
=
'low'
)
[
0
,
5
]
.
violinplot
(
[
-
1
:],
[
-
1
:],
points
=
60
,
widths
=
0.7
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
quantiles
=
[
0.05
,
0.1
,
0.8
,
0.9
],
bw_method
=
0.5
,
side
=
'high'
)
[
0
,
5
]
.
set_title
(
'Custom violin 6'
,
fontsize
=
)
[
1
,
0
]
.
violinplot
(
,
,
points
=
80
,
orientation
=
'horizontal'
,
widths
=
0.7
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
)
[
1
,
0
]
.
set_title
(
'Custom violin 7'
,
fontsize
=
)
[
1
,
1
]
.
violinplot
(
,
,
points
=
100
,
orientation
=
'horizontal'
,
widths
=
0.9
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
bw_method
=
'silverman'
)
[
1
,
1
]
.
set_title
(
'Custom violin 8'
,
fontsize
=
)
[
1
,
2
]
.
violinplot
(
,
,
points
=
200
,
orientation
=
'horizontal'
,
widths
=
1.1
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
bw_method
=
0.5
)
[
1
,
2
]
.
set_title
(
'Custom violin 9'
,
fontsize
=
)
[
1
,
3
]
.
violinplot
(
,
,
points
=
200
,
orientation
=
'horizontal'
,
widths
=
1.1
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
quantiles
=
[[
0.1
],
[],
[],
[
0.175
,
0.954
],
[
0.75
],
[
0.25
]],
bw_method
=
0.5
)
[
1
,
3
]
.
set_title
(
'Custom violin 10'
,
fontsize
=
)
[
1
,
4
]
.
violinplot
(
[
-
1
:],
[
-
1
:],
points
=
200
,
orientation
=
'horizontal'
,
widths
=
1.1
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
quantiles
=
[
0.05
,
0.1
,
0.8
,
0.9
],
bw_method
=
0.5
)
[
1
,
4
]
.
set_title
(
'Custom violin 11'
,
fontsize
=
)
[
1
,
5
]
.
violinplot
(
[
-
1
:],
[
-
1
:],
points
=
200
,
orientation
=
'horizontal'
,
widths
=
1.1
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
quantiles
=
[
0.05
,
0.1
,
0.8
,
0.9
],
bw_method
=
0.5
,
side
=
'low'
)
[
1
,
5
]
.
violinplot
(
[
-
1
:],
[
-
1
:],
points
=
200
,
orientation
=
'horizontal'
,
widths
=
1.1
,
showmeans
=
True
,
showextrema
=
True
,
showmedians
=
True
,
quantiles
=
[
0.05
,
0.1
,
0.8
,
0.9
],
bw_method
=
0.5
,
side
=
'high'
)
[
1
,
5
]
.
set_title
(
'Custom violin 12'
,
fontsize
=
)
for
in
:
([])
(
"Violin Plotting Examples"
)
(
hspace
=
0.4
)
()
The use of the following functions, methods, classes and modules is shown
in this example:
Total running time of the script: (0 minutes 1.652 seconds)