ListPlot
has the option to label points using Labeled
or Callout
. At least those are the two ways to do it of which I am aware of. A simple example:
ListPlot[{Labeled[{1, 2}, "(1,2)"], Callout[{2, 1}, "(2,1)"]}, PlotRange -> {{0, 2.5}, {0, 2.5}}]
Now two questions:
How can I add two labels to one point? Each label should thereby be (roughly) opposite to its counter. Drawing the same plot twice as a workaround doesn't work. It would recognise the points as being too dense to display their labels.
Is there a way to have precise control over the label positions in terms of ocation angle and distance from the point? The option I know of is to specify
Callout[point,label,location]
, wherelocation
could beAbove,Below,Before,After,Left,Right
, or a pair thereof, such as{Above,Right}
. But the latter seems bugged, and I would also appreciate a tighter control than just a grid with 45° angular resolution.
Here a graphical description of what I would like to do. I cannot add the code for this plot, because the curve in it is numerical.
Thanks for suggestions!