Skip to content

Instantly share code, notes, and snippets.

Working from home

Joe Kington joferkington

Working from home
Block or report user

Report or block joferkington

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tacaswell /
Created Aug 26, 2013
gist for working on annotation range function
def add_range_annotation(ax, start, end, txt_str, y_height=.5, txt_kwargs=None, arrow_kwargs=None):
Adds horizontal arrow annotation with text in the middle
ax : matplotlib.Axes
The axes to draw to
start : float
ivanov /
Created Apr 22, 2013
gradient lines in matplotlib
#!/usr/bin/env python
"""A quick hack to draw gradient lines using a colormap.
This was written in response to <Baribal>'s question on IRC.
There are two functions provided here:
`plot_gradient_hack` takes two arguments, p0 and p1, which are both (x,y)
pairs, and plots a gradient between them that spans the full colormap.
You can’t perform that action at this time.