add_subplot matplotlib increase size code example
Example 1: matplotlib subplots size
f, axs = plt.subplots(2,2,figsize=(15,15))
Example 2: matplotlib multiple plots with different size
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0, 10, 0.2)
y = np.sin(x)
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')
Example 3: matplotlib make bigger sublots
f, (a0, a1) = plt.subplots(1, 2, gridspec_kw={'width_ratios': [3, 1]})