Answers for "Space between sub plots in python"

3

matplotlib add space between subplots

import matplotlib.pyplot as plt

fig, axes = plt.subplots(nrows=4, ncols=4)
fig.tight_layout() # Or equivalently,  "plt.tight_layout()"

plt.show()
Posted by: Guest on March-09-2020
0

python subplot space between plots

import matplotlib.pyplot as plt

fig, axes = plt.subplots(nrows=4, ncols=4)
fig.tight_layout(rect=[0, 0.03, 1, 0.95]) # Or equivalently, "plt.tight_layout()"

plt.show()
Posted by: Guest on April-15-2020

Python Answers by Framework

Browse Popular Code Answers by Language