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')
In dem obigen Codeschnipsel von Scatterplot in Matplotlib gesammelt, was ist die Notwendigkeit von plt.figure()
?Was ist die Notwendigkeit von plt.figure() in Matplotlib?