MathGroup Archive 1998

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

Search the Archive

Re: Problem plotting a piecewise function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14514] Re: Problem plotting a piecewise function
  • From: real_address at in.sig (Ned W. Hummel)
  • Date: Thu, 29 Oct 1998 04:33:13 -0500
  • Organization: University of Nebraska-Lincoln
  • References: <70ras4$sge@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <70ras4$sge at smc.vnet.net>, sergio at scisun.sci.ccny.cuny.edu
wrote:

>         Could somebody explain why in the following plot nothing is
>         drawn between x =(0,0.5)?
>         How can I have the complete plot of this function?
>         Notice that f[0] = 1.0 and the y-axis tick mark gets up to
>         about 0.15
> Clear[f,Xa,Xb];
> f[x_] := Which[x >= 0. && x <= 1.5, 0.888889 (-1.5 + x) (-0.75 + x),
> True, 0]; Xa=0.0; Xb=3.0;
>  Plot[Evaluate[f[x]], {x,Xa,Xb}]

The ``PlotRange -> All'' option should do what you want.

Ned

-- 
Ned W. Hummel
00205012 at ireland.bigred.unl.edu
Please remove the country from the address to reply.


  • Prev by Date: Re: Use of the command Display, with ImageResolution
  • Next by Date: Re: LightSources
  • Previous by thread: Re: Problem plotting a piecewise function
  • Next by thread: Re: Problem plotting a piecewise function