@@ -422,9 +422,9 @@ def _repr_html_(self):
422422 if syssize > config .defaults ['statesp.latex_maxsize' ]:
423423 return None
424424 elif config .defaults ['statesp.latex_repr_type' ] == 'partitioned' :
425- return super ()._repr_info (html = True ) + self ._latex_partitioned ()
425+ return super ()._repr_info_ (html = True ) + self ._latex_partitioned ()
426426 elif config .defaults ['statesp.latex_repr_type' ] == 'separate' :
427- return super ()._repr_info (html = True ) + self ._latex_separate ()
427+ return super ()._repr_info_ (html = True ) + self ._latex_separate ()
428428 else :
429429 raise ValueError (
430430 "Unknown statesp.latex_repr_type '{cfg}'" .format (
@@ -445,7 +445,7 @@ def _latex_partitioned_stateless(self):
445445
446446 lines = [
447447 r'$$' ,
448- (r'\left( '
448+ (r'\left[ '
449449 + r'\begin{array}'
450450 + r'{' + 'rll' * self .ninputs + '}' )
451451 ]
@@ -456,7 +456,7 @@ def _latex_partitioned_stateless(self):
456456
457457 lines .extend ([
458458 r'\end{array}'
459- r'\right) ' ,
459+ r'\right] ' ,
460460 r'$$' ])
461461
462462 return '\n ' .join (lines )
@@ -481,7 +481,7 @@ def _latex_partitioned(self):
481481
482482 lines = [
483483 r'$$' ,
484- (r'\left( '
484+ (r'\left[ '
485485 + r'\begin{array}'
486486 + r'{' + 'rll' * self .nstates + '|' + 'rll' * self .ninputs + '}' )
487487 ]
@@ -498,7 +498,7 @@ def _latex_partitioned(self):
498498
499499 lines .extend ([
500500 r'\end{array}'
501- + r'\right) ' ,
501+ + r'\right] ' ,
502502 r'$$' ])
503503
504504 return '\n ' .join (lines )
@@ -519,15 +519,15 @@ def _latex_separate(self):
519519
520520 def fmt_matrix (matrix , name ):
521521 matlines = [name
522- + r' = \left( \begin{array}{'
522+ + r' = \left[ \begin{array}{'
523523 + 'rll' * matrix .shape [1 ]
524524 + '}' ]
525525 for row in asarray (matrix ):
526526 matlines .append ('&' .join (_f2s (entry ) for entry in row )
527527 + '\\ \\ ' )
528528 matlines .extend ([
529529 r'\end{array}'
530- r'\right) ' ])
530+ r'\right] ' ])
531531 return matlines
532532
533533 if self .nstates > 0 :
0 commit comments