From: Dan R. <xa...@ya...> - 2008-06-10 19:15:12
|
Hopefully I won't become a nuisance in my quest to become adept with PyX. : ) My question this time is what is the preferred method to plot a piecewise function? For instance, the function I want to plot at the moment is: $$ f(x) = \left\{ \begin{array}{ll} x & 0 \leq x < 1 \\ 0 & x = 1 \\ 1 & 1 < x \leq 2 \\ 3 - x & 2 < x < 3 \\ 1 & 3 \leq x \leq 4, x \neq 3.5 \\ 2 & x = 3.5 \\ \end{array}\right. $$ but a much simpler example/explanation would be more than enough for me. Thanks again, -Daniel |