mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 03:28:00 +08:00
changed adjustable parameter of axes to 'box-forced'
this fixes the size of axes around an image for shared axes
This commit is contained in:
@@ -40,6 +40,7 @@ def plot_img_and_hist(img, axes, bins=256):
|
||||
# Display image
|
||||
ax_img.imshow(img, cmap=plt.cm.gray)
|
||||
ax_img.set_axis_off()
|
||||
ax_img.set_adjustable('box-forced')
|
||||
|
||||
# Display histogram
|
||||
ax_hist.hist(img.ravel(), bins=bins, histtype='step', color='black')
|
||||
|
||||
Reference in New Issue
Block a user