Message Boards Message Boards

[✓] Avoid the disappearance of a Callout?

GROUPS:

Hi,

Let's say I have the following ListLinePlot:

ListLinePlot[
 Callout[Table[i, {i, 1, 20}], "list", Appearance -> "Frame"], 
 PlotRange -> All, ImageSize -> Medium]

It shows up as:

enter image description here

So long so nice. However, when I enlarge it by stretching then the Callout starts to disappear, like:

enter image description here

I looked the options for Callout, but saw no remedy there. If I specify ImageSize->Full, then only the stick is showing up.

Thanks ahead, János P.S. Unrelated but needed: How do I search the list? If I search anything using the provided search box, then I get info from the Wolfram sites but nothing relevant from the list.

POSTED BY: Janos Lobb
Answer
5 months ago

The positions of the Callouts are determined at first rendering, and the placements are not re-rendered when you change the size interactively. Specify the ImageSize explicitly (e.g. 800) should work…

POSTED BY: Sander Huisman
Answer
5 months ago

You can try adding some padding to your plot

ListLinePlot[
 Callout[Table[i, {i, 1, 20}], "list", Appearance -> "Frame"], 
 PlotRange -> All, ImageSize -> Medium, ImagePadding -> 100]

Or if you want to control just the right side padding

ListLinePlot[
 Callout[Table[i, {i, 1, 20}], "list", Appearance -> "Frame"], 
 PlotRange -> All, ImageSize -> Medium, 
 ImagePadding -> {{Automatic, 100}, {Automatic, Automatic}}]

This is working for me, hope it's what you're looking for

POSTED BY: Eric Smith
Answer
5 months ago

Group Abstract Group Abstract