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

Skip to content

Commit 8188a13

Browse files
committed
Minor fixes to doc build
1 parent bc3654c commit 8188a13

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

examples/axes_grid/demo_axes_grid2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def add_inner_title(ax, title, loc, size=None, **kwargs):
9090

9191
vmax, vmin = np.max(ZS), np.min(ZS)
9292
import matplotlib.colors
93-
norm = matplotlib.colors.normalize(vmax=vmax, vmin=vmin)
93+
norm = matplotlib.colors.Normalize(vmax=vmax, vmin=vmin)
9494

9595
for ax, z in zip(grid2, ZS):
9696
im = ax.imshow(z, norm=norm,

examples/pylab_examples/barchart_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77

88
n_groups = 5
99

10+
means_men = (20, 35, 30, 35, 27)
11+
std_men = (2, 3, 4, 1, 2)
12+
1013
means_women = (25, 32, 34, 20, 25)
1114
std_women = (3, 5, 2, 3, 3)
15+
1216
fig, ax = plt.subplots()
1317

1418
index = np.arange(n_groups)

examples/pylab_examples/eventplot_demo.py

100644100755
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import matplotlib.pyplot as plt
77
import numpy as np
8+
import matplotlib
9+
matplotlib.rcParams['font.size'] = 8.0
810

911
# set the random seed
1012
np.random.seed(0)
@@ -31,14 +33,12 @@
3133
ax1 = fig.add_subplot(221)
3234
ax1.eventplot(data1, colors=colors1, lineoffsets=lineoffsets1,
3335
linelengths=linelengths1)
34-
ax1.set_title('horizontal eventplot 1')
3536

3637

3738
# create a vertical plot
3839
ax2 = fig.add_subplot(223)
3940
ax2.eventplot(data1, colors=colors1, lineoffsets=lineoffsets1,
4041
linelengths=linelengths1, orientation='vertical')
41-
ax2.set_title('vertical eventplot 1')
4242

4343
# create another set of random data.
4444
# the gamma distribution is only used fo aesthetic purposes
@@ -55,13 +55,11 @@
5555
ax1 = fig.add_subplot(222)
5656
ax1.eventplot(data2, colors=colors2, lineoffsets=lineoffsets2,
5757
linelengths=linelengths2)
58-
ax1.set_title('horizontal eventplot 2')
5958

6059

6160
# create a vertical plot
6261
ax2 = fig.add_subplot(224)
6362
ax2.eventplot(data2, colors=colors2, lineoffsets=lineoffsets2,
6463
linelengths=linelengths2, orientation='vertical')
65-
ax2.set_title('vertical eventplot 2')
6664

6765
plt.show()

examples/pylab_examples/hist_colormapped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# we need to normalize the data to 0..1 for the full
1414
# range of the colormap
1515
fracs = N.astype(float)/N.max()
16-
norm = colors.normalize(fracs.min(), fracs.max())
16+
norm = colors.Normalize(fracs.min(), fracs.max())
1717

1818
for thisfrac, thispatch in zip(fracs, patches):
1919
color = cm.jet(norm(thisfrac))

0 commit comments

Comments
 (0)