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

Skip to content

Commit 22d5e09

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 8673b07 + 2c06a95 commit 22d5e09

18 files changed

Lines changed: 832 additions & 629 deletions

File tree

doc/_templates/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,18 @@ <h3>plotting commands</h3> <br/>
906906
</td>
907907

908908
</tr>
909+
<tr>
910+
<th align="left">
911+
<a href="api/pyplot_api.html#matplotlib.pyplot.subplots">subplots</a>
912+
913+
</th>
914+
915+
<td align="left">
916+
Create a figure with subplots
917+
</td>
918+
919+
</tr>
920+
909921
<tr>
910922
<th align="left">
911923
<a href="api/pyplot_api.html#matplotlib.pyplot.subplots_adjust">subplots_adjust</a>

examples/pylab_examples/tripcolor_demo.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,16 @@
3535
# pcolor plot.
3636
plt.figure()
3737
plt.gca().set_aspect('equal')
38-
plt.tripcolor(triang, z, shading='faceted')
38+
plt.tripcolor(triang, z, shading='flat')
3939
plt.colorbar()
40-
plt.title('tripcolor of Delaunay triangulation')
40+
plt.title('tripcolor of Delaunay triangulation: flat')
41+
42+
# Illustrate Gouraud shading.
43+
plt.figure()
44+
plt.gca().set_aspect('equal')
45+
plt.tripcolor(triang, z, shading='gouraud')
46+
plt.colorbar()
47+
plt.title('tripcolor with Gouraud shading')
4148

4249

4350
# You can specify your own triangulation rather than perform a Delaunay
@@ -89,7 +96,7 @@
8996
# calculations.
9097
plt.figure()
9198
plt.gca().set_aspect('equal')
92-
plt.tripcolor(x, y, triangles, z, shading='faceted')
99+
plt.tripcolor(x, y, triangles, z, shading='flat', edgecolors='k')
93100
plt.colorbar()
94101
plt.title('tripcolor of user-specified triangulation')
95102
plt.xlabel('Longitude (degrees)')

0 commit comments

Comments
 (0)