Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Graphic simple?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18291] Re: Graphic simple?
  • From: paulh at wolfram.com (P.J. Hinton)
  • Date: Fri, 25 Jun 1999 15:05:32 -0400
  • Organization: Wolfram Research, Inc.
  • References: <7ktv1m$97k@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7ktv1m$97k at smc.vnet.net>, "Jesus Perez Ortega" <jesper at bqto.unexpo.edu.ve> writes:

> I don't know why the mathematica don't plot well this sinple graphic
> 
> Plot[t-(t-1) UnitStep[t-1],{t,0,5}]

It would be helpful if you would provide in your description what
you mean by "don't plot well". 

I am going to guess that you are referring to the fact that the range
of the vertical axis runs from 0.86 to 1.01.  This can be fixed by
using the option PlotRange as follows:

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

The algorithms that the kernel uses to select a vertical plot
range work for most cases, but functions with jumps like this 
sometimes give strange results.

--
P.J. Hinton	
Mathematica Programming Group		paulh at wolfram.com
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.


  • Prev by Date: Re: O.D.E in Power Series
  • Next by Date: Re: plot
  • Previous by thread: Re: Graphic simple?
  • Next by thread: Re: Graphic simple?