@@ -146,6 +146,7 @@ def set_text_props(self, **kwargs):
146
146
'update the text properties with kwargs'
147
147
self ._text .update (kwargs )
148
148
149
+
149
150
class ScientificCell (Cell ):
150
151
"""
151
152
A subclass of Cell where vertical lines are ommitted.
@@ -155,10 +156,11 @@ class ScientificCell(Cell):
155
156
def get_path (self ):
156
157
'Return a path where vertical lines are not drawn'
157
158
path = Path ([[0.0 , 0.0 ], [1.0 , 0.0 ], [1.0 , 1.0 ], [0.0 , 1.0 ],
158
- [0.0 , 0.0 ]],
159
- [Path .MOVETO , Path .LINETO , Path .MOVETO , Path .LINETO ,
159
+ [0.0 , 0.0 ]],
160
+ [Path .MOVETO , Path .LINETO , Path .MOVETO , Path .LINETO ,
160
161
Path .CLOSEPOLY ],
161
- readonly = True )
162
+ readonly = True
163
+ )
162
164
return path
163
165
164
166
@@ -251,7 +253,7 @@ def cellType(self):
251
253
@cellType .setter
252
254
def cellType (self , value ):
253
255
if value is None :
254
- pass # Leave as previously set
256
+ pass # Leave as previously set
255
257
elif value in self .CELLTYPES :
256
258
self ._cellType = value
257
259
else :
@@ -284,8 +286,8 @@ def draw(self, renderer):
284
286
keys .sort ()
285
287
for key in keys :
286
288
self ._cells [key ].draw (renderer )
287
- #for c in self._cells.itervalues():
288
- # c.draw(renderer)
289
+ # for c in self._cells.itervalues():
290
+ # c.draw(renderer)
289
291
renderer .close_group ('table' )
290
292
291
293
def _get_grid_bbox (self , renderer ):
@@ -311,8 +313,8 @@ def contains(self, mouseevent):
311
313
# doesn't have to bind to each one individually.
312
314
if self ._cachedRenderer is not None :
313
315
boxes = [self ._cells [pos ].get_window_extent (self ._cachedRenderer )
314
- for pos in six .iterkeys (self ._cells )
315
- if pos [0 ] >= 0 and pos [1 ] >= 0 ]
316
+ for pos in six .iterkeys (self ._cells )
317
+ if pos [0 ] >= 0 and pos [1 ] >= 0 ]
316
318
bbox = Bbox .union (boxes )
317
319
return bbox .contains (mouseevent .x , mouseevent .y ), {}
318
320
else :
@@ -493,12 +495,12 @@ def get_celld(self):
493
495
494
496
495
497
def table (ax ,
496
- cellText = None , cellColours = None ,
497
- cellLoc = 'right' , colWidths = None ,
498
- rowLabels = None , rowColours = None , rowLoc = 'left' ,
499
- colLabels = None , colColours = None , colLoc = 'center' ,
500
- loc = 'bottom' , bbox = None , cellType = None ,
501
- ** kwargs ):
498
+ cellText = None , cellColours = None ,
499
+ cellLoc = 'right' , colWidths = None ,
500
+ rowLabels = None , rowColours = None , rowLoc = 'left' ,
501
+ colLabels = None , colColours = None , colLoc = 'center' ,
502
+ loc = 'bottom' , bbox = None , cellType = None ,
503
+ ** kwargs ):
502
504
"""
503
505
TABLE(cellText=None, cellColours=None,
504
506
cellLoc='right', colWidths=None,
0 commit comments