parent
0d1f2b2408
commit
446ff312a1
@ -1,9 +0,0 @@
|
|||||||
import pandas as pd
|
|
||||||
import matplotlib.pyplot as plt
|
|
||||||
|
|
||||||
df = pd.DataFrame({'height':[180,170,172,183,179,178,160],
|
|
||||||
'weight':[85,80,85,75,78,78,70]})
|
|
||||||
df.plot(x='height', y='weight', kind='scatter',
|
|
||||||
marker='*', s=60, label='height-weight') #绘制散点图
|
|
||||||
# plt.figure(figsize=(8,5))
|
|
||||||
plt.show()
|
|
Loading…
Reference in new issue