plt.figure(figsize=(10,8))
plt.scatter(df['attacker_size'][df['year'] == 298],
# attacker size in year 298 as the y axis
df['defender_size'][df['year'] == 298],
# the marker as
marker='x',
# the color
color='b',
# the alpha
alpha=0.7,
# with size
s = 124,
# labelled this
label='Year 298')
在上述從Scatterplot in Matplotlib收集的代碼片段中,plt.figure()
的必要性是什麼?matplotlib中plt.figure()的必要性是什麼?