0
$\begingroup$

Say I have a dataset.

data={{1,2},{3,4},{5,6},{7,8},{9,10}}
ListPlot[data, Joined->True,PlotStyle->Dashed]

I can change the plotstyle with DotDashedinstead of Dashed. What are the other options available? Can I make it a line made of * or ~.

$\endgroup$
1

1 Answer 1

1
$\begingroup$
data = {{1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, 10}};

{xmin, xmax} = MinMax[data[[All, 1]]];

Manipulate[
 pts = Interpolation[data][#] & /@ 
   Range[xmin, xmax, (xmax - xmin)/n];
 ListPlot[{pts, data},
  PlotStyle -> {Blue, Red},
  PlotMarkers -> marker,
  DataRange -> {xmin, xmax}],
 Row[{
   Control[{{n, 20}, Range[20, 50, 5]}],
   Spacer[25],
   Control[{{marker, "*"}, {"~", "@", "#", "$", "%", "&", "*"}}]}]]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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