[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.gca.html [Back]  [Original]

matplotlib.pyplot.gca — Matplotlib 3.12.0.dev731+g2fb04d1a6 documentation
Back to top
Search the docs ...:

matplotlib.pyplot.gca#

matplotlib.pyplot.gca()[source]#

Get the current Axes.

If there is currently no Axes on this Figure, a new one is created using Figure.add_subplot. (To test whether there is currently an Axes on a Figure, check whether figure.axes is empty. To test whether there is currently a Figure on the pyplot figure stack, check whether pyplot.get_fignums() is empty.)

Notes

Note

This is the pyplot wrapper for Figure.gca.

Examples using matplotlib.pyplot.gca#

[]

Multicolored lines

Multicolored lines
[]

Annotated heatmap

Annotated heatmap
[]

Scale invariant angle label

Scale invariant angle label
[]

Manage multiple figures in pyplot

Manage multiple figures in pyplot
[]

Set and get properties

Set and get properties
[]

Hinton diagrams

Hinton diagrams
[]

Tight layout guide

Tight layout guide

Web Proxy Viewer  |  New URL  |  Original Page