1 ec 边缘颜色
marker 边缘的颜色
import numpy as np
import matplotlib.pyplot as plt
x=np.linspace(0,10)
y=np.sin(x)+1.5
plt.figure(figsize=(10,10))
plt.scatter(x,y,ec='C9')
plt.show()
2 fc 填充颜色
face color 填充颜色
3 lw 边缘宽度
4 s 点的大小
5 marker 点款式
import numpy as np
import matplotlib.pyplot as plt
x=np.linspace(0,10)
y=np.sin(x)+1.5
plt.figure(figsize=(10,10))
plt.scatter(x,y,marker='P')
plt.show()
import numpy as np
import matplotlib.pyplot as plt
x=np.linspace(0,10)
y=np.sin(x)+1.5
plt.figure(figsize=(10,10))
plt.scatter(x,y,marker='1')
plt.show()
import numpy as np
import matplotlib.pyplot as plt
x=np.linspace(0,10)
y=np.sin(x)+1.5
plt.figure(figsize=(10,10))
plt.scatter(x,y,marker='$♠$',s=250)
plt.show()