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/v0.14.0.txt
+14
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,20 @@ You can use a right-hand-side of an alignable object as well.
286
286
df2.loc[idx[:,:,['C1','C3']],:] = df2*1000
287
287
df2
288
288
289
+
Plotting With Errorbars
290
+
~~~~~~~~~~~~~~~~~~~~~~~
291
+
292
+
Plotting with error bars is now supported in the ``.plot`` method of ``DataFrame`` and ``Series`` objects (:issue:`3796`).
293
+
294
+
x and y errorbars are supported and can be supplied using the ``xerr`` and ``yerr`` keyword arguments to ``.plot()`` The error values can be specified using a variety of formats.
295
+
296
+
- As a ``DataFrame`` or ``dict`` of errors with one or more of the column names (or dictionary keys) matching one or more of the column names of the plotting ``DataFrame`` or matching the ``name`` attribute of the ``Series``
297
+
- As a ``str`` indicating which of the columns of plotting ``DataFrame`` contain the error values
298
+
- As raw values (``list``, ``tuple``, or ``np.ndarray``). Must be the same length as the plotting ``DataFrame``/``Series``
299
+
300
+
Asymmetrical error bars are also supported, however raw error values must be provided in this case. For a ``M`` length ``Series``, a ``Mx2`` array should be provided indicating lower and upper (or left and right) errors. For a ``MxN`` ``DataFrame``, asymmetrical errors should be in a ``Mx2xN`` array.
Copy file name to clipboardExpand all lines: doc/source/visualization.rst
+34
Original file line number
Diff line number
Diff line change
@@ -381,6 +381,40 @@ columns:
381
381
382
382
plt.close('all')
383
383
384
+
.. _visualization.errorbars:
385
+
386
+
Plotting With Error Bars
387
+
~~~~~~~~~~~~~~~~~~~~~~~~
388
+
Plotting with error bars is now supported in the ``.plot`` method of ``DataFrame`` and ``Series`` objects.
389
+
390
+
x and y errorbars are supported and be supplied using the ``xerr`` and ``yerr`` keyword arguments to ``.plot()`` The error values can be specified using a variety of formats.
391
+
392
+
- As a ``DataFrame`` or ``dict`` of errors with column names matching the ``columns`` attribute of the plotting ``DataFrame`` or matching the ``name`` attribute of the ``Series``
393
+
- As a ``str`` indicating which of the columns of plotting ``DataFrame`` contain the error values
394
+
- As raw values (``list``, ``tuple``, or ``np.ndarray``). Must be the same length as the plotting ``DataFrame``/``Series``
395
+
396
+
Asymmetrical error bars are also supported, however raw error values must be provided in this case. For a ``M`` length ``Series``, a ``Mx2`` array should be provided indicating lower and upper (or left and right) errors. For a ``MxN`` ``DataFrame``, asymmetrical errors should be in a ``Mx2xN`` array.
397
+
398
+
Here is an example of one way to easily plot group means with standard deviations from the raw data.
0 commit comments