def __init__(self, gridspec, figure, positions=None):
"""Create a grid layout specifier using the given gridspec and the given figure.
Args:
gridspec (GridSpec): the gridspec to use
figure (Figure): the figure to generate subplots for
positions (:class:`list`): if given, a list with grid spec indices for every requested axis
can be logical indices or (x, y) coordinate indices (choose one and stick with it).
"""
self.gridspec = gridspec
self.figure = figure
self.positions = positions
评论列表
文章目录