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

Skip to content

Commit 4ffb03a

Browse files
committed
Revert some changes caught by @QuLogic in review
1 parent c3157cb commit 4ffb03a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

examples/api/power_norm_demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@
2424
bins=100, norm=mcolors.PowerNorm(gamma))
2525

2626
plt.subplots_adjust(hspace=0.8)
27-
plt.savefig("test.png")
2827
plt.show()

examples/pylab_examples/pcolor_demo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
`"""
22
Demonstrates similarities between pcolor, pcolormesh, imshow and pcolorfast
33
for drawing quadrilateral grids.
44
@@ -20,31 +20,31 @@
2020

2121

2222
plt.subplot(2, 2, 1)
23-
plt.pcolor(x, y, z, vmin=z_min, vmax=z_max)
23+
plt.pcolor(x, y, z, cmap='RdBu', vmin=z_min, vmax=z_max)
2424
plt.title('pcolor')
2525
# set the limits of the plot to the limits of the data
2626
plt.axis([x.min(), x.max(), y.min(), y.max()])
2727
plt.colorbar()
2828

2929

3030
plt.subplot(2, 2, 2)
31-
plt.pcolormesh(x, y, z, vmin=z_min, vmax=z_max)
31+
plt.pcolormesh(x, y, z, cmap='RdBu', vmin=z_min, vmax=z_max)
3232
plt.title('pcolormesh')
3333
# set the limits of the plot to the limits of the data
3434
plt.axis([x.min(), x.max(), y.min(), y.max()])
3535
plt.colorbar()
3636

3737

3838
plt.subplot(2, 2, 3)
39-
plt.imshow(z, vmin=z_min, vmax=z_max,
39+
plt.imshow(z, cmap='RdBu', vmin=z_min, vmax=z_max,
4040
extent=[x.min(), x.max(), y.min(), y.max()],
4141
interpolation='nearest', origin='lower')
4242
plt.title('image (nearest)')
4343
plt.colorbar()
4444

4545

4646
ax = plt.subplot(2, 2, 4)
47-
ax.pcolorfast(x, y, z, vmin=z_min, vmax=z_max)
47+
ax.pcolorfast(x, y, z, cmap='RdBu', vmin=z_min, vmax=z_max)
4848
plt.title('pcolorfast')
4949
plt.colorbar()
5050

lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ legend.fancybox : False # if True, use a rounded box for the
256256
# legend, else a rectangle
257257
legend.loc : upper right
258258
legend.isaxes : True # this option is internally ignored
259-
legend.numpoints : 1 # the number of points in the legend line
259+
legend.numpoints : 2 # the number of points in the legend line
260260
legend.fontsize : large
261261
legend.borderpad : 0.4 # border whitespace in fontsize units
262262
legend.markerscale : 1.0 # the relative size of legend markers vs. original

0 commit comments

Comments
 (0)