Skip to content

Commit

Permalink
DOC: replace set_tight_layout with set_layout_engine in example
Browse files Browse the repository at this point in the history
There's a PendingDeprecationWarning for this introduced in Matplotlib
3.6 (released 16 Sep 2022). It should be fine to depend on latest
Matplotlib in this one example.

[skip azp] [skip actions]
  • Loading branch information
rgommers committed Oct 4, 2022
1 parent 50c85e6 commit 5a793e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/ndimage/_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ def rotate(input, angle, axes=(1, 0), reshape=True, output=None, order=3,
>>> ax2.set_axis_off()
>>> ax3.imshow(full_img_45, cmap='gray')
>>> ax3.set_axis_off()
>>> fig.set_tight_layout(True)
>>> fig.set_layout_engine('tight')
>>> plt.show()
>>> print(img.shape)
(512, 512)
Expand Down

0 comments on commit 5a793e9

Please sign in to comment.