GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

This view

  • Original page
  • New address

GeezerVison is showing matplotlib.org — matplotlib.pyplot.gca — Matplotlib 3.1.2 documentation

You are reading an old version of the documentation (v3.1.1). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.gca.html
Version 3.1.2
matplotlib
Fork me on GitHub

Navigation

  • index
  • modules |
  • next |
  • previous |
  • home| 
  • contents »
  • API Overview »
  • matplotlib.pyplot »
  • matplotlib.pyplot »

Quick search

Table of Contents

  • matplotlib.pyplot.gca
    • Examples using matplotlib.pyplot.gca

Related Topics

  • Documentation overview
    • API Overview
      • matplotlib.pyplot
        • matplotlib.pyplot
          • Previous: matplotlib.pyplot.flag
          • Next: matplotlib.pyplot.gcf
Show Page Source

matplotlib.pyplot.gca¶

matplotlib.pyplot.gca(**kwargs)[source]¶

Get the current Axes instance on the current figure matching the given keyword args, or create one.

See also

matplotlib.figure.Figure.gca
The figure's gca method.

Examples

To get the current polar axes on the current figure:

plt.gca(projection='polar')

If the current axes doesn't exist, or isn't a polar one, the appropriate axes will be created and then returned.

Examples using matplotlib.pyplot.gca¶

../../_images/sphx_glr_image_annotated_heatmap_thumb.png

Creating annotated heatmaps

../../_images/sphx_glr_multiple_figs_demo_thumb.png

Multiple Figs Demo

../../_images/sphx_glr_mathtext_examples_thumb.png

Mathtext Examples

../../_images/sphx_glr_rainbow_text_thumb.png

Rainbow text

../../_images/sphx_glr_text_alignment_thumb.png

Precise text layout

../../_images/sphx_glr_text_rotation_relative_to_line_thumb.png

Text Rotation Relative To Line

../../_images/sphx_glr_usetex_demo_thumb.png

Usetex Demo

../../_images/sphx_glr_usetex_fonteffects_thumb.png

Usetex Fonteffects

../../_images/sphx_glr_pyplot_scales_thumb.png

Pyplot Scales

../../_images/sphx_glr_simple_anchored_artists_thumb.png

Simple Anchored Artists

../../_images/sphx_glr_ginput_manual_clabel_sgskip_thumb.png

Interactive functions

../../_images/sphx_glr_trifinder_event_demo_thumb.png

Trifinder Event Demo

../../_images/sphx_glr_anchored_artists_thumb.png

Anchored Artists

../../_images/sphx_glr_set_and_get_thumb.png

Set And Get

../../_images/sphx_glr_custom_scale_thumb.png

Custom scale

../../_images/sphx_glr_symlog_demo_thumb.png

Symlog Demo

../../_images/sphx_glr_hinton_demo_thumb.png

Hinton diagrams

../../_images/sphx_glr_pyplot_thumb.png

Pyplot tutorial

../../_images/sphx_glr_legend_guide_thumb.png

Legend guide

../../_images/sphx_glr_tight_layout_guide_thumb.png

Tight Layout guide

© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team.
Last updated on Jan 05, 2020. Created using Sphinx 1.8.5. Doc version v3.1.1-79-g90d53b526.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.