I was trying to plot 2 scatter plots, using this code:
plt.figure(figsize=(12,8))
scatter_plots = ['Age','Annual Income (k$)']
for col in scatter_plots:
i=1
plt.subplot(1, 2, i)
sns.scatterplot(color='r', x=df['Spending Score (1-100)'], y=df[col])
plt.show()
i+=1
However, as a result, got this, and fig size was applied only to the first plot, and both plots were not horizontally but vertically aligned. Here is the screenshoot