Reference and Anchor Points

For placing plot embellishments on a figure, we distinguish between two points: a point somewhere on the figure (reference point) and a point on the feature (anchor point). Four parameters are used to set and adjust these two points:

  • position: a point somewhere on the figure corresponding to position_type.

  • position_type: how to specify position. Choose between

    • "inside" / "outside": inside / outside the plot bounding box using the justification codes,

    • "mapcoords": map coordinates,

    • "plotcoords": plot coordinates optionally with a unit,

    • "boxcoords": normalized (0-1) coordinates corresponding to the bounding box.

  • anchor: a point on the feature specified using the justification codes.

  • anchor_offset: offset the anchor point by dx and dy from the reference point.