Solved
Why don't you like conditions in the function definition?
If the reason is that you later need the function for calculation in a wider range, you may consider to define an extra function for plotting- Maybe even using an utility function which limits the range the function returns values:

Welcome to the PTC Community
No account yet? Create an account
Please use your PTC eSupport account.
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

