@@ -141,8 +141,7 @@ def get_height_ratios(self):
141
141
"""
142
142
return self ._row_height_ratios
143
143
144
- @_api .delete_parameter ("3.7" , "raw" )
145
- def get_grid_positions (self , fig , raw = False ):
144
+ def get_grid_positions (self , fig ):
146
145
"""
147
146
Return the positions of the grid cells in figure coordinates.
148
147
@@ -151,11 +150,6 @@ def get_grid_positions(self, fig, raw=False):
151
150
fig : `~matplotlib.figure.Figure`
152
151
The figure the grid should be applied to. The subplot parameters
153
152
(margins and spacing between subplots) are taken from *fig*.
154
- raw : bool, default: False
155
- If *True*, the subplot parameters of the figure are not taken
156
- into account. The grid spans the range [0, 1] in both directions
157
- without margins and there is no space between grid cells. This is
158
- used for constrained_layout.
159
153
160
154
Returns
161
155
-------
@@ -164,22 +158,13 @@ def get_grid_positions(self, fig, raw=False):
164
158
figure coordinates.
165
159
"""
166
160
nrows , ncols = self .get_geometry ()
167
-
168
- if raw :
169
- left = 0.
170
- right = 1.
171
- bottom = 0.
172
- top = 1.
173
- wspace = 0.
174
- hspace = 0.
175
- else :
176
- subplot_params = self .get_subplot_params (fig )
177
- left = subplot_params .left
178
- right = subplot_params .right
179
- bottom = subplot_params .bottom
180
- top = subplot_params .top
181
- wspace = subplot_params .wspace
182
- hspace = subplot_params .hspace
161
+ subplot_params = self .get_subplot_params (fig )
162
+ left = subplot_params .left
163
+ right = subplot_params .right
164
+ bottom = subplot_params .bottom
165
+ top = subplot_params .top
166
+ wspace = subplot_params .wspace
167
+ hspace = subplot_params .hspace
183
168
tot_width = right - left
184
169
tot_height = top - bottom
185
170
0 commit comments