Use kwargs for figure config

This commit is contained in:
Johannes Schönberger
2016-02-01 09:55:50 +01:00
parent 045b04703a
commit 10ffe9f690
+2 -1
View File
@@ -74,7 +74,8 @@ from skimage.transform import swirl
image = data.checkerboard()
swirled = swirl(image, rotation=0, strength=10, radius=120)
fig, (ax0, ax1) = plt.subplots(1, 2, figsize=(8, 3), sharex=True, sharey=True,
fig, (ax0, ax1) = plt.subplots(nrows=1, ncols=2, figsize=(8, 3),
sharex=True, sharey=True,
subplot_kw={'adjustable':'box-forced'})
ax0.imshow(image, cmap=plt.cm.gray, interpolation='none')