diff --git a/python/src/main/resources/bootstrap.py b/python/src/main/resources/bootstrap.py index 638ef9ba54a..0290c5f9509 100644 --- a/python/src/main/resources/bootstrap.py +++ b/python/src/main/resources/bootstrap.py @@ -162,20 +162,13 @@ def show_dataframe(self, df, **kwargs): #) body_buf.close(); header_buf.close() - def show_matplotlib(self, p, width="0", height="0", **kwargs): + def show_matplotlib(self, p, width="100%", height="100%", **kwargs): """Matplotlib show function """ img = io.StringIO() - p.savefig(img, format='svg') - img.seek(0) - style = "" - if (width != "0"): - style += 'width:' + width - if (height != "0"): - if (len(style) != 0): - style += "," - style += 'height:' + height - print("%html