diff options
-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 |