Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 82558ee

Browse filesBrowse files
committed
Revert some changes caught by @QuLogic in review
1 parent 417db2f commit 82558ee
Copy full SHA for 82558ee

File tree

Expand file treeCollapse file tree

3 files changed

+6
-7
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-7
lines changed

‎examples/api/power_norm_demo.py

Copy file name to clipboardExpand all lines: examples/api/power_norm_demo.py
-1Lines 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

Copy file name to clipboardExpand all lines: examples/pylab_examples/pcolor_demo.py
+5-5Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/mpl-data/stylelib/classic.mplstyle
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ legend.fancybox : False # if True, use a rounded box for the
263263
# legend, else a rectangle
264264
legend.loc : upper right
265265
legend.isaxes : True # this option is internally ignored
266-
legend.numpoints : 1 # the number of points in the legend line
266+
legend.numpoints : 2 # the number of points in the legend line
267267
legend.fontsize : large
268268
legend.borderpad : 0.4 # border whitespace in fontsize units
269269
legend.markerscale : 1.0 # the relative size of legend markers vs. original

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.