You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -102,6 +102,8 @@ def plumeplot( # pragma: no cover
102
102
dashes=None,
103
103
linewidth=2,
104
104
time_axis=None,
105
+
pre_calculated=False,
106
+
quantile_over=("ensemble_member",),
105
107
):
106
108
"""
107
109
Make a plume plot, showing plumes for custom quantiles
@@ -112,51 +114,104 @@ def plumeplot( # pragma: no cover
112
114
Axes on which to make the plot
113
115
114
116
quantiles_plumes : list[tuple[tuple, float]]
115
-
Configuration to use when plotting quantiles. Each element is a tuple, the first element of which is itself a tuple and the second element of which is the alpha to use for the quantile. If the first element has length two, these two elements are the quantiles to plot and a plume will be made between these two quantiles. If the first element has length one, then a line will be plotted to represent this quantile.
116
-
117
-
quantile_over : tuple[str]
118
-
Columns of ``self.meta`` over which the quantiles should be calculated.
117
+
Configuration to use when plotting quantiles. Each element is a tuple,
118
+
the first element of which is itself a tuple and the second element of
119
+
which is the alpha to use for the quantile. If the first element has
120
+
length two, these two elements are the quantiles to plot and a plume
121
+
will be made between these two quantiles. If the first element has
122
+
length one, then a line will be plotted to represent this quantile.
119
123
120
124
hue_var : str
121
-
The column of ``self.meta`` which should be used to distinguish different hues.
125
+
The column of ``self.meta`` which should be used to distinguish
126
+
different hues.
122
127
123
128
hue_label : str
124
129
Label to use in the legend for ``hue_var``.
125
130
126
131
palette : dict
127
-
Dictionary defining the colour to use for different values of ``hue_var``.
132
+
Dictionary defining the colour to use for different values of
133
+
``hue_var``.
128
134
129
135
style_var : str
130
-
The column of ``self.meta`` which should be used to distinguish different styles.
136
+
The column of ``self.meta`` which should be used to distinguish
137
+
different styles.
131
138
132
139
style_label : str
133
140
Label to use in the legend for ``style_var``.
134
141
135
142
dashes : dict
136
-
Dictionary defining the style to use for different values of ``style_var``.
143
+
Dictionary defining the style to use for different values of
144
+
``style_var``.
137
145
138
146
linewidth : float
139
-
Width of lines to use (for quantiles which are not to be shown as plumes)
147
+
Width of lines to use (for quantiles which are not to be shown as
148
+
plumes)
140
149
141
150
time_axis : str
142
151
Time axis to use for the plot (see :meth:`~ScmRun.timeseries`)
143
152
153
+
pre_calculated : bool
154
+
Are the quantiles pre-calculated? If no, the quantiles will be
155
+
calculated within this function. Pre-calculating the quantiles using
156
+
:meth:`ScmRun.quantiles_over` can lead to faster plotting if multiple
157
+
plots are to be made with the same quantiles.
158
+
159
+
quantile_over : str, tuple[str]
160
+
Columns of ``self.meta`` over which the quantiles should be calculated.
161
+
Only used if ``pre_calculated`` is ``True``.
162
+
144
163
Returns
145
164
-------
146
165
:obj:`matplotlib.axes._subplots.AxesSubplot`, list
147
166
Axes on which the plot was made and the legend items we have made (in
148
167
case the user wants to move the legend to a different position for
0 commit comments