summaryrefslogtreecommitdiff
path: root/snippets/python-mode
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-06-26 01:59:21 -0400
committerKyle Meyer <kyle@kyleam.com>2016-06-26 01:59:21 -0400
commit2c149f17ab3f6a0441e4f185b2bf96611dab4984 (patch)
tree1f7745320821dcb6fdd3f856ade92755bb333076 /snippets/python-mode
parentdc3a960e9bba5722a5d5dd3fa4bdf26846cc89b9 (diff)
downloademacs.d-2c149f17ab3f6a0441e4f185b2bf96611dab4984.tar.gz
Add more matplotlib layout snippets
Diffstat (limited to 'snippets/python-mode')
-rw-r--r--snippets/python-mode/subplots-adjust7
-rw-r--r--snippets/python-mode/tight-layout6
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