bob.measure.plot.det() yields points out of bounds in some cases

It seems that bob.measure.plot.det() yields incorrect plots where the values are outside of the expected [0,1] range in at least certain cases. It becomes impossible to plot correctly as a result.

Example code to reproduce the issue:

import bob.measure
import matplotlib.pyplot as plt
import numpy as np

plt.figure()
l1 = bob.measure.plot.det([1, 2, 3], [2, 2.5, 4], npoints=200) # works for apparently any number of points, including 3 and 2000
print(np.max((l1[0].get_ydata()))) # yields 8.126357928110227
print(np.min((l1[0].get_ydata()))) # yields -8.126357928110227
print(np.max((l1[0].get_xdata()))) # yields 8.126357928110227
print(np.min((l1[0].get_xdata()))) # yields -8.126357928110227

These values are inconsistent with expected values in the range of [0,1].

The image shows the result of the plot of the above code, simply adding plt.show().bob_det_plot

Edited by Alex UNNERVIK