Message Boards Message Boards

GROUPS:

[✓] Avoid the disappearance of a Callout?

Posted 7 months ago
697 Views
|
2 Replies
|
0 Total Likes
|

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.

2 Replies

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…

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

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract