“matplotlib hace subbloots más grandes” Código de respuesta

tamaño de las subtramas de matplotlib

f, axs = plt.subplots(2,2,figsize=(15,15))
Frantic Fly

matlotlib múltiples gráficos con diferente tamaño

import numpy as np
import matplotlib.pyplot as plt 

# generate some data
x = np.arange(0, 10, 0.2)
y = np.sin(x)

# plot it
f, (a0, a1) = plt.subplots(1, 2, gridspec_kw={'width_ratios': [3, 1]})
a0.plot(x, y)
a1.plot(y, x)

f.tight_layout()
f.savefig('grid_figure.pdf')
Bright Boar

matplotlib hace subbloots más grandes

f, (a0, a1) = plt.subplots(1, 2, gridspec_kw={'width_ratios': [3, 1]})
Frantic Fly

Respuestas similares a “matplotlib hace subbloots más grandes”

Preguntas similares a “matplotlib hace subbloots más grandes”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código