Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: How to draw a trajectory in DensityPlot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53244] Re: How to draw a trajectory in DensityPlot?
  • From: "Borut Levart" <bole79 at email.si>
  • Date: Mon, 3 Jan 2005 04:29:21 -0500 (EST)
  • References: <cr8e1c$r5k$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Idyllic,

Use Epilog option under the DensityPlot command.

I would first build a curve graphic primitive:
curve = Line[Table[{Cos[t], Sin[t]}, {t, 0, 2Pi, Pi/10}]];

And then I would draw the density plot with overlaid curve (note the
GrayLevel[1] - "make it white" graphic directive):
DensityPlot[Exp[-(x^2 + y^2)], {x, -2, 2}, {y, -2, 2},
PlotRange -> All,
Epilog -> {GrayLevel[1], curve}]

Or you could write everything above under a single procedure, function.


Bye!
Borut, Slovenia




"idyllic" <idyllic.math at gmail.com> wrote in message
news:cr8e1c$r5k$1 at smc.vnet.net...
> Dear all,
>   Is there a good method to draw a given trajectory in a densityplot?
>   e.g. I wanna draw a light circle orbit in the form of a DensityPlot.
>   Any ideas will be appreciated, thanks in advance.
>                    Sincerely             Idyllic
>


  • Prev by Date: Re: Play restarting to early
  • Next by Date: Re: Simple Fourier help
  • Previous by thread: Re: How to draw a trajectory in DensityPlot&#65311;
  • Next by thread: Re: Re: How to draw a trajectory in DensityPlot&#65311;