Skip to main content

Timeline for Fit PlotRange to Text in Graphics

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Jan 15 at 6:50 vote accept phileasdg
Dec 27, 2024 at 20:59 vote accept phileasdg
Jan 2 at 3:18
Oct 13, 2024 at 2:02 vote accept phileasdg
Dec 27, 2024 at 20:59
Oct 11, 2024 at 15:32 answer added azerbajdzan timeline score: 4
Oct 11, 2024 at 4:49 answer added A. Kato timeline score: 0
Oct 10, 2024 at 19:19 history edited phileasdg CC BY-SA 4.0
added 118 characters in body
Oct 10, 2024 at 19:15 comment added phileasdg Thank you for the suggestion. To clarify: I'd like to be able to write: Graphics[{..., Text["something very long"]},PlotRange->something] and have the resulting Graphics show the full text without imposing any line wrapping, and without any unnecessary white space or padding around the text.
Oct 10, 2024 at 18:57 comment added ZehDeckel Actually, this related question looks like it could answer your question, if I understand it correctly.
Oct 10, 2024 at 18:54 comment added ZehDeckel Maybe your example is too minimal or I am confused because you want to scale the text but also specify the fontsize. Do you want to scale the text to the graphics size? Then you could use e.g. Fontsize->Scaled[0.005] as long as your text is consistent in length. There are probably even better and more automatic ways. Or do you want to actually scale the Graphics to the text? That's probably not so easy because the text is only anchored to a single point.
S Oct 10, 2024 at 17:59 review First questions
Oct 10, 2024 at 18:18
S Oct 10, 2024 at 17:59 history asked phileasdg CC BY-SA 4.0