We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e076c commit c85b4adCopy full SHA for c85b4ad
pyroll/core/repr.py
@@ -72,10 +72,12 @@ def _repr_html_(self):
72
plt.close(plot)
73
svg = sio.getvalue()
74
75
- svg = re.sub(r'height="[\d.\w]*?"', 'height="100%"', svg)
76
- svg = re.sub(r'width="[\d.\w]*?"', 'width="100%"', svg)
77
-
78
- return "<table><tr><td style='width:60%'>" + svg + "</td><td>" + table + "</td></tr></table>"
+ return (
+ "<table>"
+ + "<tr><td style='text-align: center'>" + svg + "</td></tr>"
+ + "<tr><td style='text-align: left'>" + table + "</td></tr>"
79
+ + "</table>"
80
+ )
81
82
except (NotImplementedError, ImportError, AttributeError, TypeError):
83
return table
0 commit comments