Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Boxplot color demo update #7324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 21, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
correction for doc string and PEP8
  • Loading branch information
aneda authored and phobson committed Oct 21, 2016
commit ed4d7e7f48514a39c5dac2bc371deb4c2e36d7ac
6 changes: 3 additions & 3 deletions examples/statistics/boxplot_color_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Box plots with custom fill colors
"""Box plots with custom fill colors."""

import matplotlib.pyplot as plt
import numpy as np
Expand Down Expand Up @@ -29,12 +29,12 @@
# adding horizontal grid lines
for ax in axes:
ax.yaxis.grid(True)
ax.set_xticks([y+1 for y in range(len(all_data))], )
ax.set_xticks([y + 1 for y in range(len(all_data))], )
ax.set_xlabel('xlabel')
ax.set_ylabel('ylabel')

# add x-tick labels
plt.setp(axes, xticks=[y+1 for y in range(len(all_data))],
plt.setp(axes, xticks=[y + 1 for y in range(len(all_data))],
xticklabels=['x1', 'x2', 'x3', 'x4'])

plt.show()