On this page
matplotlib.pyplot.gca
matplotlib.pyplot.gca(**kwargs)[source]-
Get the current Axes, creating one if necessary.
The following kwargs are supported for ensuring the returned Axes adheres to the given projection etc., and for Axes creation if the active Axes does not exist:
Property Description adjustable{'box', 'datalim'} agg_filtera filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alphascalar or None anchor2-tuple of floats or {'C', 'SW', 'S', 'SE', ...} animatedbool aspect{'auto', 'equal'} or float autoscale_onbool autoscalex_onbool autoscaley_onbool axes_locatorCallable[[Axes, Renderer], Bbox] axisbelowbool or 'line' box_aspectfloat or None clip_boxBboxclip_onbool clip_pathPatch or (Path, Transform) or None containsunknown facecoloror fccolor figureFigureframe_onbool gidstr in_layoutbool labelobject navigatebool navigate_modeunknown path_effectsAbstractPathEffectpickerNone or bool or float or callable position[left, bottom, width, height] or Bboxprop_cycleunknown rasterization_zorderfloat or None rasterizedbool sketch_params(scale: float, length: float, randomness: float) snapbool or None titlestr transformTransformurlstr visiblebool xboundunknown xlabelstr xlim(bottom: float, top: float) xmarginfloat greater than -0.5 xscale{"linear", "log", "symlog", "logit", ...} or ScaleBasexticklabelsunknown xticksunknown yboundunknown ylabelstr ylim(bottom: float, top: float) ymarginfloat greater than -0.5 yscale{"linear", "log", "symlog", "logit", ...} or ScaleBaseyticklabelsunknown yticksunknown zorderfloat
Examples using matplotlib.pyplot.gca
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.4.3/api/_as_gen/matplotlib.pyplot.gca.html