xxxxxxxxxx
subplot(1,1,1)
plot(x, y, 'r--')
subplot(1,2,2)
plot(y, x, 'g*-');
xxxxxxxxxx
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (20,3)
xxxxxxxxxx
import matplotlib.pyplot as plt
# Define the figure size
fig, ax = plt.subplots(figsize=(8, 6))
# Plot some data
x = [1, 2, 3, 4, 5]
y = [3, 6, 2, 7, 1]
ax.plot(x, y)
# Show the plot
plt.show()