@@ -223,19 +223,19 @@ def example_plot(ax, fontsize=12, nodec=False):
223
223
hspace = 0.2 , wspace = 0.2 )
224
224
225
225
##########################################
226
- # rcParams:
227
- # -----------
226
+ # rcParams
227
+ # --------
228
228
#
229
229
# There are five `rcParams` that can be set, either in a script
230
230
# or in the `matplotlibrc` file. They all have the prefix
231
231
# `figure.constrained_layout`:
232
232
#
233
- # - `use`: Whether to use constrained_layout. Default is False
234
- # - `w_pad`, `h_pad` Padding around axes objects.
235
- # Float representing inches. Default is 3./72. inches (3 pts)
236
- # - `wspace`, `hspace` Space between subplot groups.
237
- # Float representing a fraction of the subplot widths being separated.
238
- # Default is 0.02.
233
+ # - `use`: Whether to use constrained_layout. Default is False
234
+ # - `w_pad`, `h_pad` Padding around axes objects.
235
+ # Float representing inches. Default is 3./72. inches (3 pts)
236
+ # - `wspace`, `hspace` Space between subplot groups.
237
+ # Float representing a fraction of the subplot widths being separated.
238
+ # Default is 0.02.
239
239
240
240
plt .rcParams ['figure.constrained_layout.use' ] = True
241
241
fig , axs = plt .subplots (2 , 2 , figsize = (3 , 3 ))
@@ -446,16 +446,15 @@ def docomplicated(suptitle=None):
446
446
# Other Caveats
447
447
# -------------
448
448
#
449
- # * ``constrained_layout`` only considers ticklabels,
450
- # axis labels, titles, and legends. Thus, other artists may be clipped
451
- # and also may overlap.
449
+ # * ``constrained_layout`` only considers ticklabels, axis labels, titles, and
450
+ # legends. Thus, other artists may be clipped and also may overlap.
452
451
#
453
- # * It assumes that the extra space needed for ticklabels, axis labels,
454
- # and titles is independent of original location of axes. This is
455
- # often true, but there are rare cases where it is not.
452
+ # * It assumes that the extra space needed for ticklabels, axis labels,
453
+ # and titles is independent of original location of axes. This is
454
+ # often true, but there are rare cases where it is not.
456
455
#
457
- # * There are small differences in how the backends handle rendering fonts,
458
- # so the results will not be pixel-identical.
456
+ # * There are small differences in how the backends handle rendering fonts,
457
+ # so the results will not be pixel-identical.
459
458
460
459
###########################################################
461
460
# Debugging
@@ -467,9 +466,9 @@ def docomplicated(suptitle=None):
467
466
# mode is for all sizes to collapse to their smallest allowable value. If
468
467
# this happens, it is for one of two reasons:
469
468
#
470
- # 1. There was not enough room for the elements you were requesting to draw
471
- # 2. There is a bug - in which case open an issue at
472
- # https://github.com/matplotlib/matplotlib/issues.
469
+ # 1. There was not enough room for the elements you were requesting to draw.
470
+ # 2. There is a bug - in which case open an issue at
471
+ # https://github.com/matplotlib/matplotlib/issues.
473
472
#
474
473
# If there is a bug, please report with a self-contained example that does
475
474
# not require outside data or dependencies (other than numpy).
@@ -632,11 +631,10 @@ def docomplicated(suptitle=None):
632
631
# height of the 1-row Axes to be less than half the height of the
633
632
# 2-row Axes.
634
633
#
635
- # ..note::
634
+ # .. note::
636
635
#
637
- # This algorithm can be wrong if the decorations attached
638
- # to the smaller axes are very large, so there is an unaccounted-for
639
- # edge case.
636
+ # This algorithm can be wrong if the decorations attached to the smaller
637
+ # axes are very large, so there is an unaccounted-for edge case.
640
638
641
639
642
640
fig = plt .figure (constrained_layout = True )
0 commit comments