MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / PlaceHolderLayoutEngine

Class PlaceHolderLayoutEngine

lib/matplotlib/layout_engine.py:111–134  ·  view source on GitHub ↗

This layout engine does not adjust the figure layout at all. The purpose of this `.LayoutEngine` is to act as a placeholder when the user removes a layout engine to ensure an incompatible `.LayoutEngine` cannot be set later. Parameters ---------- adjust_compatible, colorba

Source from the content-addressed store, hash-verified

109
110
111class PlaceHolderLayoutEngine(LayoutEngine):
112 """
113 This layout engine does not adjust the figure layout at all.
114
115 The purpose of this `.LayoutEngine` is to act as a placeholder when the user removes
116 a layout engine to ensure an incompatible `.LayoutEngine` cannot be set later.
117
118 Parameters
119 ----------
120 adjust_compatible, colorbar_gridspec : bool
121 Allow the PlaceHolderLayoutEngine to mirror the behavior of whatever
122 layout engine it is replacing.
123
124 """
125 def __init__(self, adjust_compatible, colorbar_gridspec, **kwargs):
126 self._adjust_compatible = adjust_compatible
127 self._colorbar_gridspec = colorbar_gridspec
128 super().__init__(**kwargs)
129
130 def execute(self, fig):
131 """
132 Do nothing.
133 """
134 return
135
136
137class TightLayoutEngine(LayoutEngine):

Callers 1

set_layout_engineMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…