Build an Axes in a figure. Parameters ---------- fig : `~matplotlib.figure.Figure` The Axes is built in the `.Figure` *fig*. *args ``*args`` can be a single ``(left, bottom, width, height)`` rectangle or a single `.Bbox`.
(self, fig,
*args,
facecolor=None, # defaults to rc axes.facecolor
frameon=True,
sharex=None, # use Axes instance's xaxis info
sharey=None, # use Axes instance's yaxis info
label='',
xscale=None,
yscale=None,
box_aspect=None,
forward_navigation_events="auto",
**kwargs
)
| 619 | self._update_twinned_axes_patch_visibility() |
| 620 | |
| 621 | def __init__(self, fig, |
| 622 | *args, |
| 623 | facecolor=None, # defaults to rc axes.facecolor |
| 624 | frameon=True, |
| 625 | sharex=None, # use Axes instance's xaxis info |
| 626 | sharey=None, # use Axes instance's yaxis info |
| 627 | label='', |
| 628 | xscale=None, |
| 629 | yscale=None, |
| 630 | box_aspect=None, |
| 631 | forward_navigation_events="auto", |
| 632 | **kwargs |
| 633 | ): |
| 634 | """ |
| 635 | Build an Axes in a figure. |
| 636 | |
| 637 | Parameters |
| 638 | ---------- |
| 639 | fig : `~matplotlib.figure.Figure` |
| 640 | The Axes is built in the `.Figure` *fig*. |
| 641 | |
| 642 | *args |
| 643 | ``*args`` can be a single ``(left, bottom, width, height)`` |
| 644 | rectangle or a single `.Bbox`. This specifies the rectangle (in |
| 645 | figure coordinates) where the Axes is positioned. |
| 646 | |
| 647 | ``*args`` can also consist of three numbers or a single three-digit |
| 648 | number; in the latter case, the digits are considered as |
| 649 | independent numbers. The numbers are interpreted as ``(nrows, |
| 650 | ncols, index)``: ``(nrows, ncols)`` specifies the size of an array |
| 651 | of subplots, and ``index`` is the 1-based index of the subplot |
| 652 | being created. Finally, ``*args`` can also directly be a |
| 653 | `.SubplotSpec` instance. |
| 654 | |
| 655 | sharex, sharey : `~matplotlib.axes.Axes`, optional |
| 656 | The x- or y-`~.matplotlib.axis` is shared with the x- or y-axis in |
| 657 | the input `~.axes.Axes`. Note that it is not possible to unshare |
| 658 | axes. |
| 659 | |
| 660 | frameon : bool, default: True |
| 661 | Whether the Axes frame is visible. |
| 662 | |
| 663 | box_aspect : float, optional |
| 664 | Set a fixed aspect for the Axes box, i.e. the ratio of height to |
| 665 | width. See `~.axes.Axes.set_box_aspect` for details. |
| 666 | |
| 667 | forward_navigation_events : bool or "auto", default: "auto" |
| 668 | Control whether pan/zoom events are passed through to Axes below |
| 669 | this one. "auto" is *True* for axes with an invisible patch and |
| 670 | *False* otherwise. |
| 671 | |
| 672 | **kwargs |
| 673 | Other optional keyword arguments: |
| 674 | |
| 675 | %(Axes:kwdoc)s |
| 676 | |
| 677 | Returns |
| 678 | ------- |
nothing calls this directly
no test coverage detected