title: Graph a custom function in python
body: <p>I would like to graph a custom function including <code>min</code> and <code>max</code> :</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  import matplotlib.pyplot as plt
  
  f = lambda x: max(0, x)
  x = np.linspace(-10, 10)
  y = f(x)
  
  plt.plot(x, y)
  plt.show()
  </code></pre>
  
  <p>Result:</p>
  
  <blockquote>
    <p>ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()</p>
  </blockquote>
  
  <p>Some help will be welcome</p>