From fb3721b91aee31c218d9b81e25ff87700e726b45 Mon Sep 17 00:00:00 2001 From: dave <dave@dtu.dk> Date: Sat, 11 Jun 2016 14:16:57 +0200 Subject: [PATCH] updated docs and docstring --- docs/install-manual-detailed.md | 1 + wetb/prepost/mplutils.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/install-manual-detailed.md b/docs/install-manual-detailed.md index 99c6886..bb089c3 100644 --- a/docs/install-manual-detailed.md +++ b/docs/install-manual-detailed.md @@ -61,6 +61,7 @@ in parallel. You can find more background information and installation instructions [here](https://packaging.python.org/en/latest/extensions/#setting-up-a-build-environment-on-windows), [here](https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/), +[here](https://matthew-brett.github.io/pydagogue/python_msvc.html), or [here](http://stevedower.id.au/blog/building-for-python-3-5-part-two/). diff --git a/wetb/prepost/mplutils.py b/wetb/prepost/mplutils.py index b8ca174..02e60e2 100644 --- a/wetb/prepost/mplutils.py +++ b/wetb/prepost/mplutils.py @@ -114,6 +114,10 @@ def match_axis_ticks(ax1, ax2, ax1_format=None, ax2_format=None): def one_legend(*args, **kwargs): + """First list all the axes as arguments. Any keyword arguments will be + passed on to ax.legend(). Legend will be placed on the last axes that was + passed as an argument. + """ # or more general: not only simple line plots (bars, hist, ...) objs = [] for ax in args: -- GitLab