"""Tutorial for plotting a DET curve
"""

import bob
import numpy
from matplotlib import pyplot

positives = numpy.random.normal(1,1,100)
negatives = numpy.random.normal(-1,1,100)

npoints = 100
bob.measure.plot.det(negatives, positives, npoints, color=(0,0,0), linestyle='-', label='test')
bob.measure.plot.det_axis([0.1, 80, 0.1, 80])
pyplot.grid(True)
pyplot.xlabel('FRR (%)')
pyplot.ylabel('FAR (%)')
pyplot.title('DET')
