File: defaults.rstw

package info (click to toggle)
python-pweave 0.30.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,068 kB
  • sloc: python: 30,281; makefile: 167
file content (21 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (2)
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"])
@