MathGroup Archive 2010

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

Search the Archive

Re: Putting a Plot inside a Graphics function with other drawings

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108101] Re: Putting a Plot inside a Graphics function with other drawings
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Mon, 8 Mar 2010 06:14:55 -0500 (EST)

On 3/7/10 at 5:10 AM, ram.rachum at gmail.com (cool-RR) wrote:

>(Please ignore my earlier question about plot markers, I already
>figured it out, thanks.)

>I am trying to combine a Plot with other graphics elements. I've
>tried doing Graphics[{Plot[whatever], Disk[whatever]}], but it's
>saying that "Graphics is not a Graphics directive." (Probably
>because Plot already applies Graphics itself.)

>How do I do this?

Use Epilog or Prolog. For example

Plot[x, {x, 0, 1}, Epilog -> {Red, Disk[{.5, .5}, .1]},
  AspectRatio -> 1]

Draws a line with a red disk on top. Or if you prefer the line
to be on top of the disk

Plot[x, {x, 0, 1}, Prolog -> {Red, Disk[{.5, .5}, .1]},
  AspectRatio -> 1]



  • Prev by Date: union table
  • Next by Date: Re: ReplaceRepeated in case of non ordered expressions
  • Previous by thread: Re: Putting a Plot inside a Graphics function with other drawings
  • Next by thread: Re: Putting a Plot inside a Graphics function with other drawings