I want to add a label to each point of my ListPlot[]
by using the example from the documentation as a basis:
ListPlot[Labeled[#, #] & /@ Table[Prime[n], {n, 10}],
PlotStyle -> PointSize[Medium]]
Now I want to increase the spacing of the labels. Labeled[]
has the option Spacings
for this, but unfortunately, I can't combine them with my plot:
ListPlot[Labeled[#, #, Spacings -> {1, 1}] & /@
Table[Prime[n], {n, 10}], PlotStyle -> PointSize[Medium]]
because it results in the following error:
Labeled::labpos: "Spacings->{1,1} is not a valid position for the placement of labels. "
Is there any way around this problem?
Tested with Mathematica 10.4.1.