MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / gca

Function gca

site-packages/matplotlib/pyplot.py:917–935  ·  view source on GitHub ↗

Get the current :class:`~matplotlib.axes.Axes` instance on the current figure matching the given keyword args, or create one. Examples -------- To get the current polar axes on the current figure:: plt.gca(projection='polar') If the current axes doesn't exist, or

(**kwargs)

Source from the content-addressed store, hash-verified

915
916
917def gca(**kwargs):
918 """
919 Get the current :class:`~matplotlib.axes.Axes` instance on the
920 current figure matching the given keyword args, or create one.
921
922 Examples
923 --------
924 To get the current polar axes on the current figure::
925
926 plt.gca(projection='polar')
927
928 If the current axes doesn't exist, or isn't a polar one, the appropriate
929 axes will be created and then returned.
930
931 See Also
932 --------
933 matplotlib.figure.Figure.gca : The figure's gca method.
934 """
935 return gcf().gca(**kwargs)
936
937
938## More ways of creating axes ##

Callers 15

delaxesFunction · 0.85
twinxFunction · 0.85
twinyFunction · 0.85
boxFunction · 0.85
xlimFunction · 0.85
ylimFunction · 0.85
xticksFunction · 0.85
yticksFunction · 0.85
rgridsFunction · 0.85
thetagridsFunction · 0.85
colorbarFunction · 0.85
matshowFunction · 0.85

Calls 2

gcfFunction · 0.85
gcaMethod · 0.80

Tested by

no test coverage detected