MathGroup Archive 2000

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

Search the Archive

Q: Axes on top of graphics primitives?


In a list plot, I would like to mark a rectangular region around the axes
origin with a gray background. The following three lines basically do what I
want except that the axes are drawn *behind* the rectangle. Does anyone know
an approach that allows to draw the axes on top of the gray region?

lp = ListPlot[{{0, 0}}, PlotRange -> {{-2, 2}, {-2, 2}}, AspectRatio -> 1]
region = Graphics[{GrayLevel[0.95], Rectangle[{-1, -1}, {1, 1}]}]
Show[lp, region]

-- Eckhard

-----------------------------------------------------------
Dipl.-Ing. Eckhard Hennig      mailto:hennig at itwm.uni-kl.de
Institut fuer Techno- und Wirtschaftsmathematik e.V. (ITWM)
Erwin-Schroedinger-Strasse,  67663 Kaiserslautern,  Germany
  Voice: +49-(0)631-205-3126    Fax: +49-(0)631-205-4139
    http://www.itwm.uni-kl.de/as/employees/hennig.html

     ITWM - Makers of Analog Insydes for Mathematica
        http://www.itwm.uni-kl.de/as/products/ai
-----------------------------------------------------------





  • Prev by Date: Integrating Unit Step Functions (Convolution)
  • Next by Date: Re: best solution?
  • Previous by thread: Integrating Unit Step Functions (Convolution)
  • Next by thread: RE: Q: Axes on top of graphics primitives?