Skip to content

Commit

Permalink
suppress tight_layout deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Aug 3, 2020
1 parent 202eb40 commit 657ff50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainweb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def plot_slice(z):
ax.set_xticks(())
ax.set_yticks(())
for _ in range(tight_layout):
plt.tight_layout(0, 0, 0)
plt.tight_layout(pad=0, h_pad=0, w_pad=0)
# make sure to clear extra axes
for ax in axs[axs.index(ax) + 1:]:
ax.axis('off')
Expand Down

0 comments on commit 657ff50

Please sign in to comment.