@@ -294,7 +294,8 @@ def get_available_port(default_port):
294294#: :param float/np.ndarray data: The series data for the current train.
295295#: :param str name: The name of the series, to be displayed in a legend (optional).
296296#: :param float/np.ndarray error: The error of :code:`data`, shown as ± :code:`error` (optional).
297- Series = namedtuple ("Series" , ["data" , "name" , "error" ], defaults = [None , None ])
297+ #: :param float/np.ndarray error_beam_width: The
298+ Series = namedtuple ("Series" , ["data" , "name" , "error" , "error_beam_width" ], defaults = [None , None , None ])
298299
299300
300301def rich_output (x , xlabel = "x" , ylabel = "y" , title = None , max_points = None , ** kwargs ):
@@ -356,6 +357,7 @@ def rich_output(x, xlabel="x", ylabel="y", title=None, max_points=None, **kwargs
356357 "ylabel" : ylabel ,
357358 "y_series_labels" : [],
358359 "series_errors" : { },
360+ "series_errors_beam_widths" : { }
359361 }
360362
361363 # Copy optional arguments without a default value
@@ -375,6 +377,8 @@ def rich_output(x, xlabel="x", ylabel="y", title=None, max_points=None, **kwargs
375377
376378 if data .error is not None :
377379 xr_attrs ["series_errors" ][label ] = data .error
380+ if data .error_beam_width is not None :
381+ xr_attrs ["series_errors_beam_widths" ][label ] = data .error_beam_width
378382 else :
379383 y_series_labels .append (key )
380384 full_data .append (data )
0 commit comments