This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def example(): | |
# grab some lat/long coords from wherever. For this example, | |
# I just opened a javascript console in the browser and ran: | |
# | |
# navigator.geolocation.getCurrentPosition(function(p) { | |
# console.log(p); | |
# }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def my_boxplot(ax, positions, values, width=None, color=None, label=None): | |
"""Custom box plot to work around some of matplotlib's quirks. | |
Parameters | |
---------- | |
ax : matplotlib axis | |
Target axis. | |
positions : (M,) ndarray of float | |
Where to positions boxes on the x-axis. | |
values : (M, N) ndarray of float |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
greek_alphabet = { | |
u'\u0391': 'Alpha', | |
u'\u0392': 'Beta', | |
u'\u0393': 'Gamma', | |
u'\u0394': 'Delta', | |
u'\u0395': 'Epsilon', | |
u'\u0396': 'Zeta', | |
u'\u0397': 'Eta', | |
u'\u0398': 'Theta', | |
u'\u0399': 'Iota', |