MathGroup Archive 2005

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

Search the Archive

Re: GridLines and ImplicitPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56641] Re: [mg56620] GridLines and ImplicitPlot
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 1 May 2005 00:46:41 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Steven,

Well, that is an interesting question! It appears that you have uncovered a
bug in that ContourGraphics does not include GridLines as an Option.

Needs["Graphics`ImplicitPlot`"]

The following works...

ImplicitPlot[y == x^2, {x, -1, 1},
  Frame -> True,
  GridLines -> Automatic]
-Graphics-

The following does not work...

plot1 =
  ImplicitPlot[y == x^2, {x, -1, 1}, {y, 0, 1},
    Frame -> True,
    GridLines -> Automatic]
-ContourGraphics-

Notice that the two iterator form of ImplicitPlot gives ContourGraphics
while the one iterator form gives Graphics.

If we try to sneak GridLines in with a Show statement we obtain...

Show[plot1, GridLines -> Automatic]
ContourGraphics::optx: Unknown option GridLines in -ContourGraphics-

And, indeed, GridLines is not an option in ContourGraphics.

Options[ContourGraphics] // TableForm
(GridLines missing)

The unintuitive way to get the GridLines is to convert to Graphics.

Show[Graphics[plot1], GridLines -> Automatic]

On the otherhand, with the DrawGraphics package from my web site the output
is automatically converted to Graphics so there is no suprise.

Needs["DrawGraphics`DrawingMaster`"]

Draw2D[
  {ImplicitDraw[y == x^2, {x, -1, 1}, {y, 0, 1}]},
  Frame -> True,
  GridLines -> Automatic]

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/






From: Steven Jonak [mailto:JonakSt at gw.kirkwood.k12.mo.us]
To: mathgroup at smc.vnet.net

I can't seem to be able to use the GridLines->Automatic command with
ImplicitPlot.  The help browser says that ImplicitPlot accepts all the
usual Plot options.  Any ideas?

S Jonak
"Maintain an even strain."





  • Prev by Date: Re: Re: Slow performance on OS X?
  • Next by Date: Re: Re: something like dB
  • Previous by thread: Re: Re: GridLines and ImplicitPlot
  • Next by thread: Re: Re: Working with huge text files with mathematica