2
$\begingroup$

Doing something like

Show[ListPlot[{1, 5, 6, 7, 8, 9, 0, 10}], 
 ListLinePlot[{1, 5, 6, 7, 8, 9, 0, 10}]]

I would know how to index each element in the ListPlot like the following image.

enter image description here

$\endgroup$
8
$\begingroup$

You could try:

ListPlot[MapIndexed[
  Callout[#1, First[#2], Above] &, {1, 5, 6, 7, 8, 9, 0, 10}], 
 PlotMarkers -> {Automatic, Medium}, Joined -> True]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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