2
$\begingroup$

Does anyone know any equivalent tool like "Format Painter" (Picture) of the MS Word processor but for Mathematica ?

"Format Painter" is used when you want to copy formatting from one item to another. For example if you have written text in Word, and have it formatted using a specific font type, color, and font size you could copy that formatting to another section of text by using the Format Painter tool.

Format Painter

$\endgroup$
2
  • $\begingroup$ Could you please elaborate which functionalty you are looking for. $\endgroup$ Commented Nov 21, 2019 at 19:30
  • 1
    $\begingroup$ @MichaelWeyrauch There it is $\endgroup$
    – Victor
    Commented Nov 21, 2019 at 19:36

2 Answers 2

4
$\begingroup$

When you have a first plot

P = Plot[x^2, {x, 0, 1}, AspectRatio -> 2, PlotTheme -> "Scientific"]

you can copy many of the options to a second plot with

Plot[x^3, {x, -1, 1}, Evaluate[Sequence @@ Options[P]]]
$\endgroup$
2
  • 1
    $\begingroup$ This is very useful. I am also looking for something more global, that can be used with text, code, font. A fast way that allow me to write a text and apply a formatation of some text from somewhere else in a notebook. I know I can create a shortcut, but a shortcut is very especific... $\endgroup$
    – Victor
    Commented Nov 21, 2019 at 21:34
  • $\begingroup$ It also works without converting to a Sequence: Plot[x^3, {x, -1, 1}, Evaluate@Options[P]] $\endgroup$ Commented Nov 22, 2019 at 18:20
0
$\begingroup$

Of course. Just import or re-use a style sheet.

Just go Format > Stylesheet > Stylesheet chooser:

enter image description here

Click on one and edit the style and save it.

$\endgroup$
1
  • $\begingroup$ Perhaps more information on the process might be helpful here. $\endgroup$
    – MarcoB
    Commented Nov 21, 2019 at 22:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.