MathGroup Archive 2011

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

Search the Archive

Re: Filling Plots to the X-Axis for a Range of X Values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117773] Re: Filling Plots to the X-Axis for a Range of X Values
  • From: David Skulsky <edskulsky at gmail.com>
  • Date: Thu, 31 Mar 2011 04:00:50 -0500 (EST)
  • Reply-to: comp.soft-sys.math.mathematica at googlegroups.com

Here's an inelegant way to do it:

p1 = Plot[x^2, {x, 2, 7}, Filling -> Axis, PlotRange -> {{0, 10}, {0, 100}}];
p2 = Plot[x^2, {x, 0, 10}, PlotRange -> {{0, 10}, {0, 100}}];
Show[p1,p2]

David


  • Prev by Date: Re: Why Mathematica does not issue a warning when the calculations
  • Next by Date: Re: "set" data structure in Mathematica? (speeding up graph traversal function)
  • Previous by thread: Filling Plots to the X-Axis for a Range of X Values
  • Next by thread: Re: Filling Plots to the X-Axis for a Range of X Values