Message Boards Message Boards

0
|
4739 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

[?] Avoid the disappearance of a Callout?

Posted 6 years ago

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
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…

POSTED BY: Sander Huisman

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
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