@@ -146,6 +146,7 @@ def set_text_props(self, **kwargs):
146146 'update the text properties with kwargs'
147147 self ._text .update (kwargs )
148148
149+
149150class ScientificCell (Cell ):
150151 """
151152 A subclass of Cell where vertical lines are ommitted.
@@ -155,10 +156,11 @@ class ScientificCell(Cell):
155156 def get_path (self ):
156157 'Return a path where vertical lines are not drawn'
157158 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 ,
160161 Path .CLOSEPOLY ],
161- readonly = True )
162+ readonly = True
163+ )
162164 return path
163165
164166
@@ -251,7 +253,7 @@ def cellType(self):
251253 @cellType .setter
252254 def cellType (self , value ):
253255 if value is None :
254- pass # Leave as previously set
256+ pass # Leave as previously set
255257 elif value in self .CELLTYPES :
256258 self ._cellType = value
257259 else :
@@ -284,8 +286,8 @@ def draw(self, renderer):
284286 keys .sort ()
285287 for key in keys :
286288 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)
289291 renderer .close_group ('table' )
290292
291293 def _get_grid_bbox (self , renderer ):
@@ -311,8 +313,8 @@ def contains(self, mouseevent):
311313 # doesn't have to bind to each one individually.
312314 if self ._cachedRenderer is not None :
313315 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 ]
316318 bbox = Bbox .union (boxes )
317319 return bbox .contains (mouseevent .x , mouseevent .y ), {}
318320 else :
0 commit comments