matplotlib.axes.SubplotBase¶
-
class
matplotlib.axes.
SubplotBase
(fig, *args, **kwargs)[源代码]¶ 基类:
object
子批次的基类,它是
Axes
具有其他方法的实例,以便于生成和操作一组Axes
在一个数字内。参数: - fig :
matplotlib.figure.Figure
matplotlib.figure.Figure
- *args 元组( 诺尔斯 , 恩科斯 , 指数 )或者内景元组(元组)
图中的子图数组具有维数
(nrows, ncols)
和 指数 正在创建的子批次的索引。 指数 从左上角的1开始,向右增加。如果 诺尔斯 , 恩科斯 和 指数 都是个位数 args 可以作为单个3位数字传递(例如,234表示(2,3,4))。
- **kwargs
关键字参数被传递到轴(子)类构造函数。
-
__dict__
= mappingproxy({'__module__': 'matplotlib.axes._subplots', '__doc__': '\n Base class for subplots, which are :class:`Axes` instances with\n additional methods to facilitate generating and manipulating a set\n of :class:`Axes` within a figure.\n ', '__init__': <function SubplotBase.__init__>, '__reduce__': <function SubplotBase.__reduce__>, 'get_geometry': <function SubplotBase.get_geometry>, 'change_geometry': <function SubplotBase.change_geometry>, 'get_subplotspec': <function SubplotBase.get_subplotspec>, 'set_subplotspec': <function SubplotBase.set_subplotspec>, 'get_gridspec': <function SubplotBase.get_gridspec>, 'update_params': <function SubplotBase.update_params>, 'rowNum': <matplotlib.cbook.deprecation.deprecated.<locals>.deprecate.<locals>._deprecated_property object>, 'colNum': <matplotlib.cbook.deprecation.deprecated.<locals>.deprecate.<locals>._deprecated_property object>, 'is_first_row': <function SubplotBase.is_first_row>, 'is_last_row': <function SubplotBase.is_last_row>, 'is_first_col': <function SubplotBase.is_first_col>, 'is_last_col': <function SubplotBase.is_last_col>, 'label_outer': <function SubplotBase.label_outer>, '_make_twin_axes': <function SubplotBase._make_twin_axes>, '__repr__': <function SubplotBase.__repr__>, '__dict__': <attribute '__dict__' of 'SubplotBase' objects>, '__weakref__': <attribute '__weakref__' of 'SubplotBase' objects>, '__annotations__': {}})¶
-
__init__
(fig, *args, **kwargs)[源代码]¶ 参数: - fig :
matplotlib.figure.Figure
matplotlib.figure.Figure
- *args 元组( 诺尔斯 , 恩科斯 , 指数 )或者内景元组(元组)
图中的子图数组具有维数
(nrows, ncols)
和 指数 正在创建的子批次的索引。 指数 从左上角的1开始,向右增加。如果 诺尔斯 , 恩科斯 和 指数 都是个位数 args 可以作为单个3位数字传递(例如,234表示(2,3,4))。
- **kwargs
关键字参数被传递到轴(子)类构造函数。
- fig :
-
__module__
= 'matplotlib.axes._subplots'¶
-
__weakref__
¶ 对象的弱引用列表(如果已定义)
-
property
colNum
¶
-
get_subplotspec
()[源代码]¶ 返回
SubplotSpec
与子批次关联的实例。
-
property
rowNum
¶
-
set_subplotspec
(subplotspec)[源代码]¶ 设置
SubplotSpec
. 与子地块关联的实例。
- fig :