I would like to plot the max function, but python's default max function can't take arrays, and I guess that's what matplotlib does under the hood.
So what is the correct syntax?
import matplotlib.pyplot as plt
import matplotlib.pylab as pylab
t = pylab.arange(-6, 6)
s = max(0,t)
plt.plot(t, s)
plt.show()
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
tand the max value oft?