"Reframe to contents" (and replot()) fails on text blocks
@sgougeon)
Reported by Samuel GOUGEON (replot_with_xstrings.png (46.89 KB, image/png)
plot with xtrings: bad reframing to contents, and fixed reframing.
BUG DESCRIPTION:
----------------
When a graphic includes some text blocks as displayed with xstring(),
the "Reframe to contents" executed with replot([%inf,..]) fails:
the size of text blocks is not taken into account
ERROR LOG:
----------
none. Wrong behavior.
HOW TO REPRODUCE THE BUG:
-------------------------
scf();
plot(1)
xarc(0.8,1.2,0.4,0.4,0,360*64)
replot([0 0 2 2])
for a = 0:45:359
s = msprintf("angle %d°\n",a);
x = 1+0.2*cosd(-a+30);
y = 1+0.2*sind(-a+30);
xstring(x,y,s,a);
end
gca().children(1:8).box = "on";
gca().children(1:8).foreground = color("grey70");
// => See the attached screenshot: top left
replot()
// => See the attached screenshot: top right : WRONG
OTHER INFORMATION:
------------------
Fix to come: Screenshot : bottom left