从 坐标系转换为 坐标系。
并使用edgecolors =’none’绘制没有轮廓的面。
import numpy as np
fig = figure()
ax = fig.add_subplot(111)
dx_in_points = np.diff(ax.transData.transform(zip([0]*len(dx), dx)))
scatter(x,y,c=z,s=dx_in_points**2,marker='s', edgecolors='none')
Python散点图。标记的大小和样式
从 坐标系转换为 坐标系。
并使用edgecolors =’none’绘制没有轮廓的面。
import numpy as np
fig = figure()
ax = fig.add_subplot(111)
dx_in_points = np.diff(ax.transData.transform(zip([0]*len(dx), dx)))
scatter(x,y,c=z,s=dx_in_points**2,marker='s', edgecolors='none')