4
$\begingroup$

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?

$\endgroup$
4
  • 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 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 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 at 6:36
  • $\begingroup$ @Nasser Awesome! $\endgroup$
    – matheorem
    Jul 29 at 6:41

0

Your Answer

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

Browse other questions tagged or ask your own question.