The following code
<< SciDraw`;
Figure[
FigurePanel[
{FigLine[Plot[x, {x, 0, 1}]];
p1 = {30, 80};
p2 = DisplacePoint[p1, Canvas[{20, 20}]];
FigInset[Show[Graphics[Circle[{0, 0}, 1]]], Transpose@{p1, p2}];
}],
CanvasSize -> {4, 3}
]
fails with
Transpose::nmtx: The first two levels of {{30,80},Object[Object$1058]} cannot be transposed.
Why is that? The documentation claims that
The DisplacePoint function generates a new point by moving a given vector displacement “relative to” a given point. (You can actually add several displacements d1 , d2 , . . .at once.) A displacement may be given as {dx,dy}, Scaled[{dx,dy}], or Canvas[{dx,dy}]
What is the type returned by this DisplacementPoint
? How can I convert it back to regular coordinates?
AnchorCoordinates
. Isn't this what you need to apply top2
? No answer because I don't have the time to get to the bottom of it, but if you figure it out, please do self-answer. $\endgroup$