How to plot a function with conditional statements using matplotlib in python -


i wanna know how draw function in python, i've yet grasp how make complete functions using matplotlib yet

my goal plot graph function:

    f(x)=     if        x < x^2           x = x^2     else if       x \in [0,2]           x = x     else       x = 5 

however, i'm not sure how started on except importing matplotlib, im sorry question repetitive, im not sure else go help


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -