From 32ff7739f40b53ce52fdd1aa087d18dfdd929037 Mon Sep 17 00:00:00 2001 From: Tomas Stolker Date: Wed, 13 May 2020 10:29:27 +0200 Subject: [PATCH] Updated docstrings of plot_spectrum --- species/plot/plot_spectrum.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/species/plot/plot_spectrum.py b/species/plot/plot_spectrum.py index ec4456e5..0676a2e3 100644 --- a/species/plot/plot_spectrum.py +++ b/species/plot/plot_spectrum.py @@ -83,8 +83,12 @@ def plot_spectrum(boxes: list, offset : tuple(float, float) Offset for the label of the x- and y-axis. legend : str, tuple, dict, list(dict, dict), None - Location of the legend (str, tuple) or a dictionary with the ``**kwargs`` of - ``matplotlib.pyplot.legend``, for example ``{'loc': 'upper left', 'fontsize: 12.}``. + Location of the legend (str or tuple(float, float)) or a dictionary with the ``**kwargs`` + of ``matplotlib.pyplot.legend``, for example ``{'loc': 'upper left', 'fontsize: 12.}``. + Alternatively, a list with two values can be provided to separate the model and data + handles in two legends. Each of these two elements can be set to ``None``. For example, + ``[None, {'loc': 'upper left', 'fontsize: 12.}]``, if only the data points should be + included in a legend. figsize : tuple(float, float) Figure size. object_type : str