RE: Q: Axes on top of graphics primitives?
- To: mathgroup at smc.vnet.net
- Subject: [mg22958] RE: [mg22908] Q: Axes on top of graphics primitives?
- From: "David Park" <djmp at earthlink.net>
- Date: Fri, 7 Apr 2000 02:54:39 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Eckhard, This will do it. Needs["Graphics`FilledPlot`"] Show[lp, region, AxesFront -> True]; And while we are on the topic, I don't understand why AxesFront is not a regular Graphics option, instead of being buried in FilledPlot. Your example shows that it has much wider application than filled plots! David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ > > 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 >