From bed991a0df9e874f50f527e258e7eb94cccb4d9f Mon Sep 17 00:00:00 2001
From: Manuel Gunther <siebenkopf@googlemail.com>
Date: Mon, 16 Oct 2017 11:33:47 -0600
Subject: [PATCH] Fixed curve to show values between [0,1]

---
 doc/guide.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/guide.rst b/doc/guide.rst
index 44c3b2f..63b819d 100644
--- a/doc/guide.rst
+++ b/doc/guide.rst
@@ -413,18 +413,19 @@ obtained in the CMC plot above.
    from matplotlib import pyplot
 
    cmc_scores = []
-   for probe in range(10):
+   for probe in range(1000):
      positives = numpy.random.normal(1, 1, 1)
      negatives = numpy.random.normal(0, 1, 19)
      cmc_scores.append((negatives, positives))
-   for probe in range(10):
+   for probe in range(1000):
      negatives = numpy.random.normal(-1, 1, 10)
      cmc_scores.append((negatives, None))
 
    bob.measure.plot.detection_identification_curve(cmc_scores, rank=1, logx=True)
    pyplot.xlabel('False Alarm Rate')
+   pyplot.xlim([0.0001, 1])
    pyplot.ylabel('Detection & Identification Rate (%)')
-   pyplot.ylim([0,100])
+   pyplot.ylim([0,1])
 
 
 
-- 
GitLab