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
Copy file name to clipboardExpand all lines: doc/source/user_guide/visualization.rst
+26-6
Original file line number
Diff line number
Diff line change
@@ -1458,25 +1458,23 @@ Horizontal and vertical error bars can be supplied to the ``xerr`` and ``yerr``
1458
1458
* As a ``str`` indicating which of the columns of plotting :class:`DataFrame` contain the error values.
1459
1459
* As raw values (``list``, ``tuple``, or ``np.ndarray``). Must be the same length as the plotting :class:`DataFrame`/:class:`Series`.
1460
1460
1461
-
Asymmetrical error bars are also supported, however raw error values must be provided in this case. For a ``N`` length :class:`Series`, a ``2xN`` array should be provided indicating lower and upper (or left and right) errors. For a ``MxN`` :class:`DataFrame`, asymmetrical errors should be in a ``Mx2xN`` array.
1462
-
1463
1461
Here is an example of one way to easily plot group means with standard deviations from the raw data.
@@ -1499,6 +1497,28 @@ Here is an example of one way to easily plot group means with standard deviation
1499
1497
1500
1498
plt.close("all")
1501
1499
1500
+
Asymmetrical error bars are also supported, however raw error values must be provided in this case. For a ``N`` length :class:`Series`, a ``2xN`` array should be provided indicating lower and upper (or left and right) errors. For a ``MxN`` :class:`DataFrame`, asymmetrical errors should be in a ``Mx2xN`` array.
1501
+
1502
+
Here is an example of one way to plot the min/max range using asymmetrical error bars.
1503
+
1504
+
.. ipython:: python
1505
+
1506
+
mins = gp3.min()
1507
+
maxs = gp3.max()
1508
+
1509
+
# errors should be positive, and defined in the order of lower, upper
1510
+
errors = [[means[c] - mins[c], maxs[c] - means[c]] for c in df3.columns]
0 commit comments