Skip to content

Instantly share code, notes, and snippets.

@davideanastasia
Created February 2, 2019 12:30
Show Gist options
  • Save davideanastasia/225fcf4450553abb398c628563ec2e94 to your computer and use it in GitHub Desktop.
Save davideanastasia/225fcf4450553abb398c628563ec2e94 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(25,25))
for taxi_id, taxi_marker in zip(taxis, ['v', 'x', '+']): # , '.', ',', 'o', '+']):
taxi_df = read_taxi_data_from_file('release/taxi_log_2008_by_id/{taxi_id}.txt'.format(taxi_id=taxi_id))
plt.scatter(taxi_df['longitude'].values.flatten(),
taxi_df['latitude'].values.flatten(), marker=taxi_marker, alpha=0.5)
plt.xlim(116.1, 116.8)
plt.ylim(39.75, 40.10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment