matplotlib does not plot zeroes

Currently I am trying to plot a simple Relu function using matplotlib. My problem is that when plotting, matplotlib ignores the zeroes and does not plot them. Heres my functions def relu(t): t[t <= 0] = 0 return t def relu_plot(): t = np.arange(-2, 2, 0.1) k = np.zeros(40) plt.plot(t, relu(t)) plt.show() print(len(relu(t))) relu_plot() And… Read More matplotlib does not plot zeroes