Horizontal Line Test For Functions / To determine whether y is a function of x, given a graph of a relation, use the following criterion: Horizontal Line Test For Functions : Plt.plot(x, y) # the horizontal line plt.plot(t,func) # the function plt.show().