Group Abstract Group Abstract

Message Boards Message Boards

Quantify directive Large in graphics?

Posted 6 years ago
POSTED BY: Mirek M
2 Replies

Maybe this is what you want:

gr = Graphics[(* your graphics *)];
AbsoluteOptions[gr]

EDIT:

Probably better is to avoid directives like Large at all, e.g.:

Graphics[{AbsoluteThickness[3], Green, Rectangle[{0, -1}, {2, 1}], 
  Red, Disk[], Blue, Circle[{2, 0}], Yellow, 
  Polygon[{{2, 0}, {4, 1}, {4, -1}}], Purple, Arrowheads[.1], 
  Arrow[{{4, 3/2}, {0, 3/2}, {0, 0}}], Black, 
  AbsoluteDashing[{10, 20}], Line[{{-1, 0}, {4, 0}}]}]

Does that help?

POSTED BY: Henrik Schachner
Posted 6 years ago

Thank you for your advice.

AbsoluteOptions[gr]

in this case doesn't work because Thickness[Large] is not Options. AbsoluteOptions get numerical value for Axes, Frame, Ticks ... but not for graphics primitives.

I agree with you that better is not to use directives like Large, Tiny, ...

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