From 2c149f17ab3f6a0441e4f185b2bf96611dab4984 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 26 Jun 2016 01:59:21 -0400 Subject: Add more matplotlib layout snippets --- snippets/python-mode/subplots-adjust | 7 +++++++ snippets/python-mode/tight-layout | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 snippets/python-mode/subplots-adjust create mode 100644 snippets/python-mode/tight-layout (limited to 'snippets') 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 -- cgit v1.2.3