diff options
author | AdeB <adbrebs@gmail.com> | 2015-04-25 11:12:19 -0400 |
---|---|---|
committer | AdeB <adbrebs@gmail.com> | 2015-04-25 11:12:19 -0400 |
commit | ccd1245db7f6799ab4e1f45a8cead85ed67f1c72 (patch) | |
tree | a6d07c5fd1b8a8bb4a3ed3c41326f839cde53b43 | |
parent | a1b1252170099b2ebc389bdf344020561541de30 (diff) | |
download | taxi-ccd1245db7f6799ab4e1f45a8cead85ed67f1c72.tar.gz taxi-ccd1245db7f6799ab4e1f45a8cead85ed67f1c72.zip |
Increase resolution of the map.
-rw-r--r-- | data_analysis/maps.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data_analysis/maps.py b/data_analysis/maps.py index 0b37f37..991f279 100644 --- a/data_analysis/maps.py +++ b/data_analysis/maps.py @@ -38,12 +38,12 @@ def extract_coordinates(n_coordinates=None): def draw_map(coordinates, xrg, yrg): + print "Start drawing" + plt.figure(figsize=(30, 30), dpi=100, facecolor='w', edgecolor='k') hist, xx, yy = np.histogram2d(coordinates[:, 0], coordinates[:, 1], bins=2000, range=[xrg, yrg]) plt.imshow(np.log(hist)) - plt.savefig(data.DATA_PATH + "/analysis/xyhmap.pdf") - - scipy.misc.imsave(data.DATA_PATH + "/analysis/xymap.png", np.log(hist)) + plt.savefig(data.DATA_PATH + "/analysis/xyhmap2.png") if __name__ == "__main__": |