请问如何在Python中调用scatter函数根据频率(counts)绘制点大小不一的散点图?
0
import pandas as pd
import matplotlib.pyplot as plt
def run_main():
filename='./geocoding.csv'
data_array=pd.read_csv(filename)
print data_array.head()
fig = plt.figure(figsize=(15.0, 10.0))
ax1 = fig.add_subplot(2,2,1)
ax1.scatter(data_array['lng'] ,data_array['lat'])
if __name__=='__main__':
run_main()
以下是预览出的数据集的前五行,类型为dataframe:
site lng lat counts
0 ���� 106.701707 26.575950 690
1 �� 106.700980 26.496945 486
2 ��Ϫ 106.665273 26.397917 469
3 ������ 106.686743 26.719737 464
4 ��Ϫ��� 106.683984 26.529108 443
没有找到相关结果
重要提示:提问者不能发表回复,可以通过评论与回答者沟通,沟通后可以通过编辑功能完善问题描述,以便后续其他人能够更容易理解问题.
0 个回复