@@ -31,32 +31,9 @@ class Cell(Rectangle):
31
31
"""
32
32
A cell is a `.Rectangle` with some associated `.Text`.
33
33
34
- .. note:
35
- As a user, you'll most likely not creates cells yourself. Instead, you
36
- should use either the `~matplotlib.table.table` factory function or
37
- `.Table.add_cell`.
38
-
39
- Parameters
40
- ----------
41
- xy : 2-tuple
42
- The position of the bottom left corner of the cell.
43
- width : float
44
- The cell width.
45
- height : float
46
- The cell height.
47
- edgecolor : color
48
- The color of the cell border.
49
- facecolor : color
50
- The cell facecolor.
51
- fill : bool
52
- Whether the cell background is filled.
53
- text : str
54
- The cell text.
55
- loc : {'left', 'center', 'right'}, default: 'right'
56
- The alignment of the text within the cell.
57
- fontproperties : dict
58
- A dict defining the font properties of the text. Supported keys and
59
- values are the keyword arguments accepted by `.FontProperties`.
34
+ As a user, you'll most likely not creates cells yourself. Instead, you
35
+ should use either the `~matplotlib.table.table` factory function or
36
+ `.Table.add_cell`.
60
37
"""
61
38
62
39
PAD = 0.1
@@ -69,6 +46,29 @@ def __init__(self, xy, width, height,
69
46
loc = None ,
70
47
fontproperties = None
71
48
):
49
+ """
50
+ Parameters
51
+ ----------
52
+ xy : 2-tuple
53
+ The position of the bottom left corner of the cell.
54
+ width : float
55
+ The cell width.
56
+ height : float
57
+ The cell height.
58
+ edgecolor : color
59
+ The color of the cell border.
60
+ facecolor : color
61
+ The cell facecolor.
62
+ fill : bool
63
+ Whether the cell background is filled.
64
+ text : str
65
+ The cell text.
66
+ loc : {'left', 'center', 'right'}, default: 'right'
67
+ The alignment of the text within the cell.
68
+ fontproperties : dict
69
+ A dict defining the font properties of the text. Supported keys and
70
+ values are the keyword arguments accepted by `.FontProperties`.
71
+ """
72
72
73
73
# Call base
74
74
Rectangle .__init__ (self , xy , width = width , height = height , fill = fill ,
0 commit comments