From: Bob Hanlon on

data = Transpose[Table[
{{x, Sin[x^2]}, {x, Cos[x^2]}},
{x, 0, 3., .25}]];

Show[
Plot[
{Sin[x^2], Cos[x^2]},
{x, 0, 3}],
ListPlot[data,
PlotMarkers ->
{Automatic, Medium}]]

Show[
Plot[
{Sin[x^2], Cos[x^2]},
{x, 0, 3}],
ListPlot[data,
PlotMarkers ->
{{"\[Bullet]", 18}, {"*", 18}}]]


Bob Hanlon

---- Haibo Min <haibo.min(a)gmail.com> wrote:

=============
Hi, there. I want to place circles, starts, triangle etc. in
different curves within a grpah to distinguish them from each other. How to
do it? I have read all the help document on Plot, but still have no idea.

For example, the following codes only automatically distinguish the Sin^2
and Cos^2 by different colors,

Plot[{Sin[x^2], Cos[x^2]}, {x, 0, 3}]

If I want to place circles along the Sin^2 curve, and stars along the Cos^2
one, how to?

Thank you!




 | 
Pages: 1
Prev: quartic equation
Next: Resolution Time Study