image_output_1.png
import matplotlib.pyplot as plt

import numpy as np

x_1 = 2 * np.random.rand(100, 1)
x_2 = 50 * np.random.rand(100, 1)
x_3 = 1000 * np.random.rand(100, 1)
y = 3 + 500 * x_1 + 20 * x_2 + x_3
fig, axs = plt.subplots(2, 2)
fig.tight_layout(h_pad=2, w_pad=2)
axs[0, 0].plot(x_1, y, 'k.')
axs[0, 0].set(xlabel='$x_1$', ylabel='y')
axs[0, 1].plot(x_2, y, 'k.')
axs[0, 1].set(xlabel='$x_2$', ylabel='y')
axs[1, 0].plot(x_3, y, 'k.')
axs[1, 0].set(xlabel='$x_3$', ylabel='y')
axs[1, 1].remove()
plt.show()