diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-06-26 01:59:21 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-06-26 01:59:21 -0400 |
commit | 2c149f17ab3f6a0441e4f185b2bf96611dab4984 (patch) | |
tree | 1f7745320821dcb6fdd3f856ade92755bb333076 /snippets | |
parent | dc3a960e9bba5722a5d5dd3fa4bdf26846cc89b9 (diff) | |
download | emacs.d-2c149f17ab3f6a0441e4f185b2bf96611dab4984.tar.gz |
Add more matplotlib layout snippets
Diffstat (limited to 'snippets')
-rw-r--r-- | snippets/python-mode/subplots-adjust | 7 | ||||
-rw-r--r-- | snippets/python-mode/tight-layout | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/snippets/python-mode/subplots-adjust b/snippets/python-mode/subplots-adjust new file mode 100644 index 0000000..f88417c --- /dev/null +++ b/snippets/python-mode/subplots-adjust @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: subplots-adjust +# key: sad +# group: matplotlib +# -- +fig.subplots_adjust($0left=0.125, right=0.9, bottom=0.1, top=0.9, + wspace=0.2, hspace=0.2) diff --git a/snippets/python-mode/tight-layout b/snippets/python-mode/tight-layout new file mode 100644 index 0000000..7c42be5 --- /dev/null +++ b/snippets/python-mode/tight-layout @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: tight-layout +# key: tl +# group: matplotlib +# -- +fig.tight_layout(pad=0.2)
\ No newline at end of file |