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
+28-6
Original file line number
Diff line number
Diff line change
@@ -1455,25 +1455,23 @@ Horizontal and vertical error bars can be supplied to the ``xerr`` and ``yerr``
1455
1455
* As a ``str`` indicating which of the columns of plotting :class:`DataFrame` contain the error values.
1456
1456
* As raw values (``list``, ``tuple``, or ``np.ndarray``). Must be the same length as the plotting :class:`DataFrame`/:class:`Series`.
1457
1457
1458
-
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.
1459
-
1460
1458
Here is an example of one way to easily plot group means with standard deviations from the raw data.
@@ -1496,6 +1494,30 @@ Here is an example of one way to easily plot group means with standard deviation
1496
1494
1497
1495
plt.close("all")
1498
1496
1497
+
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.
1498
+
1499
+
Here is an example of one way to plot the min/max range using asymmetrical error bars
1500
+
1501
+
.. ipython:: python
1502
+
1503
+
mins = gp3.min()
1504
+
maxs = gp3.max()
1505
+
mins
1506
+
maxs
1507
+
1508
+
# errors should be positive, and defined in the order of lower, upper
1509
+
errors = [[means[c] - mins[c], maxs[c] - means[c]] for c in df3.columns]
0 commit comments