@@ -779,23 +779,20 @@ class TextArea(OffsetBox):
779
779
@cbook ._delete_parameter ("3.4" , "minimumdescent" )
780
780
def __init__ (self , s ,
781
781
textprops = None ,
782
- multilinebaseline = None ,
782
+ multilinebaseline = False ,
783
783
minimumdescent = True ,
784
784
):
785
785
"""
786
786
Parameters
787
787
----------
788
788
s : str
789
789
The text to be displayed.
790
-
791
- textprops : dict, optional
792
- Dictionary of keyword parameters to be passed to the
793
- `~matplotlib.text.Text` instance contained inside TextArea.
794
-
795
- multilinebaseline : bool, optional
796
- If `True`, baseline for multiline text is adjusted so that it is
797
- (approximately) center-aligned with singleline text.
798
-
790
+ textprops : dict, default: {}
791
+ Dictionary of keyword parameters to be passed to the `.Text`
792
+ instance in the TextArea.
793
+ multilinebaseline : bool, default: False
794
+ Whether the baseline for multiline text is adjusted so that it
795
+ is (approximately) center-aligned with single-line text.
799
796
minimumdescent : bool, default: True
800
797
If `True`, the box has a minimum descent of "p". This is now
801
798
effectively always True.
@@ -826,8 +823,10 @@ def set_multilinebaseline(self, t):
826
823
"""
827
824
Set multilinebaseline.
828
825
829
- If True, baseline for multiline text is adjusted so that it is
830
- (approximately) center-aligned with single-line text.
826
+ If True, the baseline for multiline text is adjusted so that it is
827
+ (approximately) center-aligned with single-line text. This is used
828
+ e.g. by the legend implementation so that single-line labels are
829
+ baseline-aligned, but multiline labels are "center"-aligned with them.
831
830
"""
832
831
self ._multilinebaseline = t
833
832
self .stale = True
0 commit comments