-
-
Save michaelaye/8b7f5be091224bf9e985 to your computer and use it in GitHub Desktop.
This file contains 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 render_split(time, color, offset = -4*pd.datetools.Minute(15)): | |
if(color is not None): | |
pl.gca().axvspan( | |
time + offset, | |
time + pd.datetools.Minute(15) + offset, | |
facecolor = pl.cm.Paired( float(color % 12)/12 ), | |
linewidth = 0, | |
alpha = 1.0, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment