MathGroup Archive 2002

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

Search the Archive

Re: ParametricPlot Question

On 10/12/02 at 5:05 AM, charlesmorgan at (Charles Morgan) wrote:

>I would like to mark representative samples of t on a parametric plot,
>where t is the third parameter.  For example, how could I mark the 8
>values t=0, t=Pi/4, ..., t=7Pi/4  on the plot generated by:
>ParametricPlot[{Sin[t],  Cos[t]}, {t, 0, 2Pi}]

There are a number of possibilities depending on exactly how you want things to appear

You could use the GridLines option to construct a grid with intersections at the desired points,  i.e.,
GridLines->{Cos[# Pi/4]&/@Range[0,7],Sin[# Pi/4]&/@Range[0,7]}

You could use Ticks->{Cos[# Pi/4]&/@Range[0,7],Sin[# Pi/4]&/@Range[0,7]}
combined with Axes->True and seting AxesOrigin to an appropriate location

Another option would be using Epilog->MapThread[Point[{#1,#2}]&,Cos[# Pi/4]&/@Range[0,7],Sin[# Pi/4]&/@Range[0,7]}] to plot points at the key locations. In order to get a satisfactory display you may also need to adjust either PointSize or PlotStyle.

Other options include making plots of the marks and the parametric plot as separate graphics then combining them with the Show command

  • Prev by Date: RE: lissajous
  • Next by Date: Re: Table using as iterator a multiple of 10, 100, ...,10^n
  • Previous by thread: Re: ParametricPlot Question
  • Next by thread: RE: ParametricPlot Question