I'm trying to reproduce a Sensitivity specificity plot similar to this one: 
where the X axis is the threshold 

[![enter image description here](https://i.stack.imgur.com/j2Sac.png)](https://i.stack.imgur.com/j2Sac.png)

But I have not found how to do it, some skalern metrics like ROC curve return the true positive and false positive, but I have not found any option to make this plot there. 

I'm trying to compare the prob with the actal label to keep the count, the the plot I get is like this: 

[![enter image description here](https://i.stack.imgur.com/PsTY0.png)](https://i.stack.imgur.com/PsTY0.png)

Hence the X label has to be some how normalized so the curves can actually go up and down.