matplotlib.pyplot.gca
- 2019 年 10 月 10 日
- 筆記
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_36670529/article/details/101348341
matplotlib.pyplot.gca
(**kwargs)[source]
Get the current Axes
instance on the current figure matching the given keyword args, or create one.
See also
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.