In [1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

%matplotlib notebook

In [7]:
x = np.array([0, 0, 0, 1 , 2, 2, 3, 3.5, 3.8, 4.1, 4.9, 5, 5.3, 5.6, 6])
y = np.array([0, 12, 23, 26, 50, 64, 70, 82, 90, 92, 95, 96, 97, 98, 97])

line = plt.plot(x, y, color="r", marker="o", linewidth=0.8, markersize=4, markerfacecolor="b", markeredgecolor="b", label="ROC Curve", zorder=1)
ax = plt.gca()

for spine in zip(ax.spines, ax.spines.values()):
    if spine[0] == "top" or spine[0] == "right":
        spine[1].set_visible(False)
    else:
        spine[1].set_alpha(0.5)
    spine[1].set_zorder(0)
    spine[1].set_linewidth(0.5)

plt.xlim(0, 10)
plt.ylim(0, 100)
legend = plt.legend(frameon=False)
plt.gca().set_title("ROC Curve")
plt.gca().set_ylabel("True Positive Rate (%)")
plt.gca().set_xlabel("False Positive Rate (%)")


Out[7]:
<matplotlib.text.Text at 0x7f1345f94be0>

In [ ]: