Skip to content

Commit d5894aa

Browse files
committed
greatly improved .plot methods
* support for subplots=axes, x=axes, y=axes and by=axes in plot functions * support for labels (instead of axes) in x and y for line plot and scatter * support legend kwargs * better title when subplots is True * default subplots layout to last axis horizontal * pie legend defaults to False (it does not bring any more information than there already is)
1 parent 7b99913 commit d5894aa

File tree

3 files changed

+367
-37
lines changed

3 files changed

+367
-37
lines changed

doc/source/changes/version_0_33.rst.inc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,18 @@ New features
5151
Miscellaneous improvements
5252
^^^^^^^^^^^^^^^^^^^^^^^^^^
5353

54-
* improved something.
54+
* greatly improved :py:obj:`Array.plot()` method and "submethods" (:py:obj:`Array.plot.bar()`, etc.)
55+
56+
- support `x`, `y` and `by` arguments in plot functions where it make sense
57+
When only some of them are specified, the other arguments pick from remaining
58+
available axes. This means a lot of plots can now be expressed more intuitively and concisely
59+
(you do not need to transpose you array to get the result you want, you just
60+
specify the axes you want to use in 'x' or 'y'.
61+
- `subplots` argument now accepts an axis (or tuple of them) in addition to a
62+
boolean to specify *which* axes to use as subplots.
63+
- support for labels (instead of axes) in x and y for line plot and scatter
64+
- support passing a dict as legend to customize the legend
65+
- many tweaks to make several plots look better out of the box
5566

5667

5768
Fixes

0 commit comments

Comments
 (0)