Align the xlabels and ylabels of subplots with the same subplots row or column (respectively) if label alignment is being done automatically (i.e. the label position is not manually set). Alignment persists for draw events after this is called. Parameters
(self, axs=None)
| 1533 | self._align_label_groups['title'].join(ax, axc) |
| 1534 | |
| 1535 | def align_labels(self, axs=None): |
| 1536 | """ |
| 1537 | Align the xlabels and ylabels of subplots with the same subplots |
| 1538 | row or column (respectively) if label alignment is being |
| 1539 | done automatically (i.e. the label position is not manually set). |
| 1540 | |
| 1541 | Alignment persists for draw events after this is called. |
| 1542 | |
| 1543 | Parameters |
| 1544 | ---------- |
| 1545 | axs : list of `~matplotlib.axes.Axes` |
| 1546 | Optional list (or `~numpy.ndarray`) of `~matplotlib.axes.Axes` |
| 1547 | to align the labels. |
| 1548 | Default is to align all Axes on the figure. |
| 1549 | |
| 1550 | See Also |
| 1551 | -------- |
| 1552 | matplotlib.figure.Figure.align_xlabels |
| 1553 | matplotlib.figure.Figure.align_ylabels |
| 1554 | matplotlib.figure.Figure.align_titles |
| 1555 | |
| 1556 | Notes |
| 1557 | ----- |
| 1558 | This assumes that all Axes in ``axs`` are from the same `.GridSpec`, |
| 1559 | so that their `.SubplotSpec` positions correspond to figure positions. |
| 1560 | """ |
| 1561 | self.align_xlabels(axs=axs) |
| 1562 | self.align_ylabels(axs=axs) |
| 1563 | |
| 1564 | def add_gridspec(self, nrows=1, ncols=1, **kwargs): |
| 1565 | """ |