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

Skip to content

Commit 97a608a

Browse files
committed
DOC: address more comments from devs
1 parent 1aab32a commit 97a608a

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

doc/faq/installing_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ directory containing a minimal example in a file. Something like
2626
import matplotlib.pyplot as plt
2727
fig, ax = plt.subplots()
2828
ax.plot([1,2,3])
29-
fig.show()
29+
plt.show()
3030

3131
and run it with::
3232

doc/pyplots/boxplot_demo.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,30 @@
1717
data = np.concatenate((spread, center, flier_high, flier_low), 0)
1818

1919
fig1, ax1 = plt.subplots()
20-
ax1.set_title('basic plot')
20+
ax1.set_title('Basic Plot')
2121
ax1.boxplot(data)
22-
#fig1.savefig('box1')
2322

2423
fig2, ax2 = plt.subplots()
25-
ax2.set_title('notched plot')
24+
ax2.set_title('Notched boxes')
2625
ax2.boxplot(data, notch=True)
27-
#fig2.savefig('box2')
2826

2927
green_diamond = dict(markerfacecolor='g', marker='D')
3028
fig3, ax3 = plt.subplots()
31-
ax3.set_title('changed outlier point symbols')
29+
ax3.set_title('Changed Outlier Symbols')
3230
ax3.boxplot(data, flierprops=green_diamond)
33-
#fig3.savefig('box3')
3431

3532
fig4, ax4 = plt.subplots()
36-
ax4.set_title('hide show outlier points')
33+
ax4.set_title('Hide Outlier Points')
3734
ax4.boxplot(data, showfliers=False)
38-
#fig4.savefig('box4')
3935

4036
red_square = dict(markerfacecolor='r', marker='s')
4137
fig5, ax5 = plt.subplots()
42-
ax5.set_title('horizontal boxes')
38+
ax5.set_title('Horizontal Boxes')
4339
ax5.boxplot(data, vert=False, flierprops=red_square)
44-
#fig5.savefig('box5')
4540

4641
fig6, ax6 = plt.subplots()
47-
ax6.set_title('shorter whisker length')
42+
ax6.set_title('Shorter Whisker Length')
4843
ax6.boxplot(data, flierprops=red_square, vert=False, whis=0.75)
49-
#fig6.savefig('box6')
5044

5145
# fake up some more data
5246
spread = np.random.rand(50) * 100
@@ -63,8 +57,7 @@
6357
# a 2-D array into a list of vectors internally anyway.
6458
data = [data, d2, d2[::2,0]]
6559
fig7, ax7 = plt.subplots()
66-
ax7.set_title('multiple samples with different sizes')
60+
ax7.set_title('Multiple Samples with Different sizes')
6761
ax7.boxplot(data)
68-
#fig.savefig('box7')
6962

7063
plt.show()

0 commit comments

Comments
 (0)