Skip to content

Instantly share code, notes, and snippets.

@lethalbrains
lethalbrains / plot_roc.py
Created April 15, 2018 14:57 — forked from code-of-kpp/plot_roc.py
Python pyplot receiver operating characteristic (ROC) curve with colorbar
import numbers
import six
import numpy
import matplotlib.collections
from matplotlib import pyplot
# using example from
# http://nbviewer.ipython.org/github/dpsanders/matplotlib-examples/blob/master/colorline.ipynb