As we learned from the first chapter, axes are the space where we plot a graph, and all the elements we typically see in the plot are part of the axes. We can have multiple axes in one figure. In this recipe, we will learn how to plot multiple charts on the same axes.
Plotting multiple graphs on the same axes
Getting ready
We will use an example of an Receiver Operating Characteristics (ROC) curve, using which multiple machine learning (ML) algorithms are compared to a given classification problem, and the best performing algorithm is chosen for that problem. An ROC curve is plotted with a True Positive Rate (TPR) and a False Positive Rate (FPR) for a range of threshold probabilities. The objective is to see the sensitivity...