In the documentation of Callout, there is an example,

Table[ListPlot[Table[Callout[Fibonacci[n], Fibonacci[n], p], {n, 10}],
   Frame -> True], {p, {Above, Below, Before, After}}]

the result of the documentation is

enter image description here

every callout is precisely inside Frame.

However, on my computer, I got Callouts out of frame all over the place.

enter image description here

Version 12.2 and 13.1 give same result, what is wrong? How to fix it without manually tweaking like PlotRangePadding?

  • 2
    $\begingroup$ I see that in V 13.1 also. another workaround: just add Imagesize. Like this data = Table[Callout[Fibonacci[n], Fibonacci[n], p], {n, 10}]; Table[ListPlot[data, Frame -> True, ImageSize -> 200], {p, {Above, Below, Before, After}}] here is screen shot !Mathematica graphics there might be better worksrounds. This looks like a bug? $\endgroup$
    – Nasser
    Jul 29, 2022 at 5:48
  • $\begingroup$ @Nasser Thank you so much for workaround. That is a quite unexpected workaround, and what is wrong with the right part the frame after adding ImageSize? they looks like dashed lines. $\endgroup$
    – matheorem
    Jul 29, 2022 at 6:08
  • 1
    $\begingroup$ THis is easy to fix. Just add ImagePadding. Here is an update data=Table[Callout[Fibonacci[n],Fibonacci[n],p],{n,10}]; Table[ListPlot[data,Frame->True,ImageSize->200,ImagePadding->10], {p,{Above,Below,Before,After}}] screen shot !Mathematica graphics note that ImagePadding alone does not do the trick. $\endgroup$
    – Nasser
    Jul 29, 2022 at 6:36
  • $\begingroup$ @Nasser Awesome! $\endgroup$
    – matheorem
    Jul 29, 2022 at 6:41


Your Answer

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

Browse other questions tagged or ask your own question.