MathGroup Archive 2010

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

Search the Archive

Re: Filling from x_1 to x_2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111984] Re: Filling from x_1 to x_2
  • From: Themis Matsoukas <tmatsoukas at me.com>
  • Date: Mon, 23 Aug 2010 02:39:05 -0400 (EDT)

You can cheat: make a filled-area plot from x1 to x2 and superimpose an unfilled plot from xmin to xmax. For example:

f := 2 + x (x - 1);
{x1, x2, xmin, xmax} = {1, 2, 0, 5};
Show[
 Plot[f, {x, x1, x2}, Filling -> Axis, 
  PlotRange -> {{xmin, xmax}, {0, 8}}],
 Plot[f, {x, xmin, xmax}]
 ]

Themis


  • Prev by Date: Re: A curious integral and a trigonometric identity
  • Next by Date: Re: Centering Graphical Output
  • Previous by thread: Re: Filling from x_1 to x_2
  • Next by thread: Re: Filling from x_1 to x_2