@@ -530,12 +530,17 @@ def new_horizontal(self, size, pad=None, pack_start=False, **kwargs):
530
530
If False, the new axes is appended at the end
531
531
of the list, i.e., it became the right-most axes. If True, it is
532
532
inserted at the start of the list, and becomes the left-most axes.
533
- kwargs
533
+ ** kwargs
534
534
All extra keywords arguments are passed to the created axes.
535
535
If *axes_class* is given, the new axes will be created as an
536
536
instance of the given class. Otherwise, the same class of the
537
537
main axes will be used.
538
538
"""
539
+ if pad is None :
540
+ cbook .warn_deprecated (
541
+ "3.2" , message = "In a future version, 'pad' will default to "
542
+ "rcParams['figure.subplot.wspace']. Set pad=0 to keep the "
543
+ "old behavior." )
539
544
if pad :
540
545
if not isinstance (pad , Size ._Base ):
541
546
pad = Size .from_any (pad , fraction_ref = self ._xref )
@@ -574,12 +579,17 @@ def new_vertical(self, size, pad=None, pack_start=False, **kwargs):
574
579
If False, the new axes is appended at the end
575
580
of the list, i.e., it became the right-most axes. If True, it is
576
581
inserted at the start of the list, and becomes the left-most axes.
577
- kwargs
582
+ ** kwargs
578
583
All extra keywords arguments are passed to the created axes.
579
584
If *axes_class* is given, the new axes will be created as an
580
585
instance of the given class. Otherwise, the same class of the
581
586
main axes will be used.
582
587
"""
588
+ if pad is None :
589
+ cbook .warn_deprecated (
590
+ "3.2" , message = "In a future version, 'pad' will default to "
591
+ "rcParams['figure.subplot.hspace']. Set pad=0 to keep the "
592
+ "old behavior." )
583
593
if pad :
584
594
if not isinstance (pad , Size ._Base ):
585
595
pad = Size .from_any (pad , fraction_ref = self ._yref )
0 commit comments