Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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]

Dotted

Is it possible to modify the frequency (i.e., spacing) of dotting?

share|improve this question
4  
See AbsoluteDashing –  belisarius Jul 13 '12 at 15:09
2  
Since Dotted is the same as Dashing[{0, Small}], you could replace Small with Medium or Large... –  J. M. Jul 13 '12 at 15:12
2  
Related: "Plotting with dotted lines, not dashed" (MathGroups). –  Alexey Popkov Jul 13 '12 at 15:50
add comment

2 Answers 2

up vote 11 down vote accepted

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}]

Mathematica graphics

share|improve this answer
add comment
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}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.