Skip to content

Instantly share code, notes, and snippets.

@michaelaye
Forked from Jim-Holmstroem/gist:3705378
Created July 9, 2014 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelaye/8b7f5be091224bf9e985 to your computer and use it in GitHub Desktop.
Save michaelaye/8b7f5be091224bf9e985 to your computer and use it in GitHub Desktop.
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