“matplotlib Adicionar espaço entre subparcelas” Respostas de código

Espaço Matplotlib entre subparcelas

import matplotlib.pyplot as plt
matplotlib.pyplot.subplots_adjust(wspace=X, hspace=Y)
# Adjust X for width between subplots
# Adjust Y for height between subplots
Awful Angelfish

matplotlib Adicionar espaço entre subparcelas

import matplotlib.pyplot as plt

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

plt.show()
Determined Dolphin

Espaço de subparcela Python entre as parcelas

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()
Perro Fiel

Como aumentar a distância entre a sub -trama matplot lib

subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)
Thoughtless Tapir

Respostas semelhantes a “matplotlib Adicionar espaço entre subparcelas”

Perguntas semelhantes a “matplotlib Adicionar espaço entre subparcelas”

Procure respostas de código populares por idioma

Procurar outros idiomas de código