MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Graphic simple?


>Hi, all
>I don't know why the mathematica don't plot well this sinple graphic
>
>Plot[t-(t-1) UnitStep[t-1],{t,0,5}]
>
>Bye
>--
>Jesus Perez Ortega
>jesper at bqto.unexpo.edu.ve
>

Jesus,

The plot doesn't look correct because Mathematica has automatically restricted the
PlotRange to what IT thinks is interesting. This is not always what WE think is
interesting!

The solution is to specify the PlotRange as All or make it just what you want. Look
up PlotRange in Help for more information. So this will work.


Plot[t - (t - 1) UnitStep[t - 1], {t, 0, 5}, PlotRange -> All];

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/





  • Prev by Date: Re: Graphic simple?
  • Next by Date: SIMPLIFY AND SQUARE ROOTS
  • Previous by thread: Re: Graphic simple?
  • Next by thread: Re: Graphic simple?