@@ -57,7 +57,7 @@ def __init__(self, xy, width, height, *,
57
57
edgecolor = 'k' , facecolor = 'w' ,
58
58
fill = True ,
59
59
text = '' ,
60
- loc = None ,
60
+ loc = 'right' ,
61
61
fontproperties = None ,
62
62
visible_edges = 'closed' ,
63
63
):
@@ -70,20 +70,21 @@ def __init__(self, xy, width, height, *,
70
70
The cell width.
71
71
height : float
72
72
The cell height.
73
- edgecolor : color
73
+ edgecolor : color, default: 'k'
74
74
The color of the cell border.
75
- facecolor : color
75
+ facecolor : color, default: 'w'
76
76
The cell facecolor.
77
- fill : bool
77
+ fill : bool, default: True
78
78
Whether the cell background is filled.
79
- text : str
79
+ text : str, optional
80
80
The cell text.
81
- loc : {'left ', 'center', 'right'}, default: 'right'
81
+ loc : {'right ', 'center', 'left'}
82
82
The alignment of the text within the cell.
83
- fontproperties : dict
83
+ fontproperties : dict, optional
84
84
A dict defining the font properties of the text. Supported keys and
85
85
values are the keyword arguments accepted by `.FontProperties`.
86
- visible_edges : str, default: 'closed'
86
+ visible_edges : {'closed', 'open', 'horizontal', 'vertical'} or \
87
+ substring of 'BRTL'
87
88
The cell edges to be drawn with a line: a substring of 'BRTL'
88
89
(bottom, right, top, left), or one of 'open' (no edges drawn),
89
90
'closed' (all edges drawn), 'horizontal' (bottom and top),
@@ -97,8 +98,6 @@ def __init__(self, xy, width, height, *,
97
98
self .visible_edges = visible_edges
98
99
99
100
# Create text object
100
- if loc is None :
101
- loc = 'right'
102
101
self ._loc = loc
103
102
self ._text = Text (x = xy [0 ], y = xy [1 ], clip_on = False ,
104
103
text = text , fontproperties = fontproperties ,
@@ -283,7 +282,7 @@ def __init__(self, ax, loc=None, bbox=None, **kwargs):
283
282
----------
284
283
ax : `~matplotlib.axes.Axes`
285
284
The `~.axes.Axes` to plot the table into.
286
- loc : str
285
+ loc : str, optional
287
286
The position of the cell with respect to *ax*. This must be one of
288
287
the `~.Table.codes`.
289
288
bbox : `.Bbox` or [xmin, ymin, width, height], optional
@@ -685,7 +684,7 @@ def table(ax,
685
684
cellColours : 2D list of colors, optional
686
685
The background colors of the cells.
687
686
688
- cellLoc : {'left ', 'center', 'right'}, default: 'right'
687
+ cellLoc : {'right ', 'center', 'left'}
689
688
The alignment of the text within the cells.
690
689
691
690
colWidths : list of float, optional
@@ -698,7 +697,7 @@ def table(ax,
698
697
rowColours : list of colors, optional
699
698
The colors of the row header cells.
700
699
701
- rowLoc : {'left', 'center', 'right'}, default: 'left'
700
+ rowLoc : {'left', 'center', 'right'}
702
701
The text alignment of the row header cells.
703
702
704
703
colLabels : list of str, optional
@@ -707,18 +706,18 @@ def table(ax,
707
706
colColours : list of colors, optional
708
707
The colors of the column header cells.
709
708
710
- colLoc : {'left ', 'center ', 'right'}, default: 'left'
709
+ colLoc : {'center ', 'left ', 'right'}
711
710
The text alignment of the column header cells.
712
711
713
- loc : str, optional
712
+ loc : str, default: 'bottom'
714
713
The position of the cell with respect to *ax*. This must be one of
715
714
the `~.Table.codes`.
716
715
717
716
bbox : `.Bbox` or [xmin, ymin, width, height], optional
718
717
A bounding box to draw the table into. If this is not *None*, this
719
718
overrides *loc*.
720
719
721
- edges : substring of 'BRTL' or {'open ', 'closed ', 'horizontal', 'vertical'}
720
+ edges : {'closed ', 'open ', 'horizontal', 'vertical'} or substring of 'BRTL'
722
721
The cell edges to be drawn with a line. See also
723
722
`~.Cell.visible_edges`.
724
723
0 commit comments