It is possible to make a dotted ListPlot
. For example:
x = Range[0, 1, 0.0001];
y = Sin[x];
ListPlot[Transpose[{x, y}], PlotRange -> All, Joined -> True, PlotStyle -> Dotted]
Is it possible to modify the frequency (i.e., spacing) of dotting?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityIt is possible to make a dotted ListPlot
. For example:
x = Range[0, 1, 0.0001];
y = Sin[x];
ListPlot[Transpose[{x, y}], PlotRange -> All, Joined -> True, PlotStyle -> Dotted]
Is it possible to modify the frequency (i.e., spacing) of dotting?
It is indeed. As the documentation states, Dotted
is equivalent to Dashing[{0, Small}]
:
So for example
x = Range[0, 1, 0.0001];
y = Sin[x];
Table[ListPlot[Transpose[{x, y}], PlotRange -> All, Joined -> True,
PlotStyle -> Dashing[{0, d}]], {d, 0.01, 0.1, 0.01}]
x = Range[0, 2 Pi, 0.01];
y = Sin[x];
Framed@
ListPlot[(Transpose[{x, y + #}]) & /@ #,
PlotRange -> All,
Joined -> True,
PlotStyle -> (AbsoluteDashing[{#, 15 - #}] & /@ #),
Axes -> {False, True}] &@{3, 8, 12}
AbsoluteDashing
$\endgroup$ – Dr. belisarius Jul 13 '12 at 15:09Dotted
is the same asDashing[{0, Small}]
, you could replaceSmall
withMedium
orLarge
... $\endgroup$ – J. M.'s ennui♦ Jul 13 '12 at 15:12