Skip to content

Commit

Permalink
Merge pull request matplotlib#17072 from anntzer/multim
Browse files Browse the repository at this point in the history
Cleanup multi_image example.
  • Loading branch information
anntzer authored Apr 8, 2020
2 parents 9085810 + 1c61e5a commit 66d675a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/images_contours_and_fields/multi_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
np.random.seed(19680801)
Nr = 3
Nc = 2
cmap = "cool"

fig, axs = plt.subplots(Nr, Nc)
fig.suptitle('Multiple images')
Expand All @@ -22,8 +21,8 @@
for i in range(Nr):
for j in range(Nc):
# Generate data with a range that varies from one plot to the next.
data = ((1 + i + j) / 10) * np.random.rand(10, 20) * 1e-6
images.append(axs[i, j].imshow(data, cmap=cmap))
data = ((1 + i + j) / 10) * np.random.rand(10, 20)
images.append(axs[i, j].imshow(data))
axs[i, j].label_outer()

# Find the min and max of all colors for use in setting the color scale.
Expand Down

0 comments on commit 66d675a

Please sign in to comment.