Skip to content

Commit b3ce73b

Browse files
committed
Removed unnecessary comments
1 parent 9f4bbdd commit b3ce73b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/statistics/customized_violin_demo.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,15 @@ def set_axis_style(ax, labels):
4242

4343
fig, (ax1, ax2) = plt.subplots(nrows=1, ncols=2, figsize=(9, 4), sharey=True)
4444

45-
# plot the default violin
4645
ax1.set_title('Default violin plot')
4746
ax1.set_ylabel('Observed values')
4847
ax1.violinplot(data)
4948

50-
# customized violin
5149
ax2.set_title('Customized violin plot')
5250
parts = ax2.violinplot(
5351
data, showmeans=False, showmedians=False,
5452
showextrema=False)
5553

56-
# customize colors
5754
for pc in parts['bodies']:
5855
pc.set_facecolor('#D43F3A')
5956
pc.set_edgecolor('black')
@@ -71,7 +68,7 @@ def set_axis_style(ax, labels):
7168
ax2.vlines(inds, whiskersMin, whiskersMax, color='k', linestyle='-', lw=1)
7269

7370
# set style for the axes
74-
labels = ['A', 'B', 'C', 'D'] # labels
71+
labels = ['A', 'B', 'C', 'D']
7572
for ax in [ax1, ax2]:
7673
set_axis_style(ax, labels)
7774

0 commit comments

Comments
 (0)