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
  • $\begingroup$ Look at documentation for Dashing or AbsoluteDashing $\endgroup$ Commented May 29, 2017 at 17:23

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$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.