My code right now looks like this:
import math
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib.pyplot import figure
rows = np.around(np.logspace(math.log10(50),math.log10(10000),8))
rows = rows.astype(int)
# Plot runtimes
sns.set_style("whitegrid")
plt.rcParams["font.family"] = "Times New Roman"
figure(num=None,figsize=(9, 6), dpi=160, facecolor='w', edgecolor='k')
runtime = np.zeros((3,len(rows)))
runtime[0]=[1,1,3,34,104,445,2000,8000]
runtime[1]=[4,20,100,5000,26000,200000,'nan','nan']
runtime[2]=[0.5,0.5,3,30,80,300,1300,5000]
extraticks=[60]
extravalue=[60]
plt.plot(rows,runtime[0], label="A", marker='o')
plt.plot(rows,runtime[1], label="B", marker='o')
plt.plot(rows,runtime[2], label="C", marker='o')
plt.xscale("log"), plt.yscale("log")
plt.xticks(rows, labels=rows)
#plt.yticks(list(plt.yticks()[0])+extraticks,list(plt.yticks()[0])+extravalue)
plt.xlabel("Sample size")
plt.ylabel("Runtime [s]")
plt.legend()
Which gives me the following results (where I painted extra lines to show the desired outcome):
How would I go about adding those extra lines and ticks? I tried something like this as you can see in the commented line, but it messed up my previously working ticks and labels.


