MathGroup Archive 2005

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

Search the Archive

Re: Re: How to draw a trajectory in DensityPlot?


You could also use the DisplayTogether command. Or you could try the
DrawGraphics package at my web site, which makes it easy to combine various
types of graphics in one drawing statement.

Needs["DrawGraphics`DrawingMaster`"]

Draw2D[
    {DensityDraw[Sin[x]Cos[y], {x, -2, 2}, {y, -2, 2}],
      Red,
      ParametricDraw[{Cos[t], Sin[t]}, {t, 0, 2Pi}]},
    AspectRatio -> Automatic,
    Frame -> True,
    PlotLabel -> "Parametric Curve on a Density Plot",
    Background -> Linen,
    ImageSize -> 450];

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



From: timreh [mailto:a.9021031 at nctu.edu.tw]
To: mathgroup at smc.vnet.net

Hi,
I found a method:
a=InputForm[ParametricPlot[{Cos[t],Sin[t]},{t,0,2Pi}]];
DensityPlot[Sin[x]Cos[y], {x, -?, ?}, {y, -?, ?}, Epilog ->{Hue[0],
a[[1,1]]}];

and I forgot to thank you in last post.  :-)



"yehuda ben-shimol" <benshimo at bgu.ac.il> ¦b¶l¥ó
news:crb44l$al3$1 at smc.vnet.net ¤¤¼¶¼g...
> Hi,
> Epilog or Prolog options will do
> check the following code
> DensityPlot[Sin[x]Cos[y], {x, -?, ?}, {y, -?, ?}, Epilog -> {Hue[0],
> Circle[{0, 0}, 1]}]
> yehuda
>
> idyllic wrote:
>
> >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: NewBie question Plot Table of points from a data file
  • Next by Date: Converting between Spherical and Cartesian coordinates
  • Previous by thread: Re: How to draw a trajectory in DensityPlot&#65311;
  • Next by thread: Play restarting to early