Timeline for Using Padding with Text and Style
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 17, 2015 at 15:28 | comment | added | David | Showed an example of how I am using your idea. See my original post above. | |
| Aug 17, 2015 at 5:03 | vote | accept | David | ||
| Aug 17, 2015 at 4:58 | comment | added | Jens | Yes to both. E.g., try Graphics3D[myText["{1,0,0}",{0,0,0},Padding->20,Background->Directive[Opacity[.5],Red]],Background->LightBlue]. Or SetOptions[myText,Background->LightOrange]. | |
| Aug 17, 2015 at 4:49 | comment | added | David | Did you define myText as you did with all those OptionValues so that you can override the options later with something like Options[myText] = {Background -> Yellow, Padding -> 1, FrameStyle -> None}; And would you put your original code in initialization cells at the top of your notebook or what? | |
| Aug 17, 2015 at 4:12 | history | edited | Jens | CC BY-SA 3.0 | function defined |
| Aug 17, 2015 at 4:09 | comment | added | Jens | Sure, your best bet is to define a function. I'll add that... | |
| Aug 17, 2015 at 4:02 | comment | added | David | I think this is what I need. However, that's a lot of stuff to type each time you want to put a label in your diagram. Is it possible for a single line of code (and where to put it, initialization or whatever) so that every time I typed something like Text["(1,0,0)",{1,0,0}] all that other stuff would get filled in? Or is there a way to minimize some of it? Thanks for the help. | |
| Aug 17, 2015 at 3:52 | history | answered | Jens | CC BY-SA 3.0 |