|
@ -209,8 +209,36 @@ def errorbar( |
|
|
ylabel = label_from_attrs(yplt, extra=y_suffix) |
|
|
ylabel = label_from_attrs(yplt, extra=y_suffix) |
|
|
|
|
|
|
|
|
_ensure_plottable(xplt_val, yplt_val) |
|
|
_ensure_plottable(xplt_val, yplt_val) |
|
|
|
|
|
|
|
|
|
|
|
fmt = None |
|
|
|
|
|
if 'fmt' in kwargs and isinstance(kwargs['fmt'], list): |
|
|
|
|
|
fmt = kwargs["fmt"] |
|
|
|
|
|
|
|
|
|
|
|
if len(np.shape(xplt_val)) == len(np.shape(yplt_val)): |
|
|
|
|
|
|
|
|
|
|
|
primitive = ax.errorbar(xplt_val, yplt_val, *args, xerr=xerr, yerr=yerr, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|
else: |
|
|
|
|
|
primitive = np.empty(np.shape(yplt_val)[1], dtype=object) |
|
|
|
|
|
|
|
|
|
|
|
if not yerr is None: |
|
|
|
|
|
if not fmt is None: |
|
|
|
|
|
for i in range(np.shape(yplt_val)[1]): |
|
|
|
|
|
kwargs.update({'fmt': fmt[i]}) |
|
|
|
|
|
primitive[i] = ax.errorbar(xplt_val, yplt_val[:, i], *args, xerr=xerr, yerr=yerr[:, i], **kwargs) |
|
|
|
|
|
else: |
|
|
|
|
|
for i in range(np.shape(yplt_val)[1]): |
|
|
|
|
|
primitive[i] = ax.errorbar(xplt_val, yplt_val[:, i], *args, xerr=xerr, yerr=yerr[:, i], **kwargs) |
|
|
|
|
|
else: |
|
|
|
|
|
if not fmt is None: |
|
|
|
|
|
for i in range(np.shape(yplt_val)[1]): |
|
|
|
|
|
kwargs.update({'fmt': fmt[i]}) |
|
|
|
|
|
primitive[i] = ax.errorbar(xplt_val, yplt_val[:, i], *args, xerr=xerr, yerr=yerr, **kwargs) |
|
|
|
|
|
else: |
|
|
|
|
|
for i in range(np.shape(yplt_val)[1]): |
|
|
|
|
|
primitive[i] = ax.errorbar(xplt_val, yplt_val[:, i], *args, xerr=xerr, yerr=yerr, **kwargs) |
|
|
|
|
|
|
|
|
primitive = ax.errorbar(xplt_val, yplt_val, *args, xerr=xerr, yerr=yerr, **kwargs) |
|
|
|
|
|
|
|
|
primitive = tuple(primitive) |
|
|
|
|
|
|
|
|
if _labels: |
|
|
if _labels: |
|
|
if xlabel is not None: |
|
|
if xlabel is not None: |
|
|