1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Changing defaults
_________________
Default chunk options are stored in `pweave.rcParams["chunk"]["defaultoptions"]`
dictionary. You can manipulate the dictionary to change the options.
**Have a look at current defaults:**
<<>>=
import pweave
import pprint
pprint.pprint(pweave.rcParams["chunk"])
@
**Change wrapping off and default figure position to "h!"**
<<>>=
pweave.rcParams["chunk"]["defaultoptions"].update({'wrap' : False, 'f_pos' : "h!"})
#Updated options
pprint.pprint(pweave.rcParams["chunk"])
@
|