Skip to content
Open
2 changes: 1 addition & 1 deletion py/visdom/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.4
0.2.5
4 changes: 2 additions & 2 deletions py/visdom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1470,14 +1470,14 @@ def matplot(self, plot, opts=None, env=None, win=None):
if height is not None:
if not isstr(height):
height = height.group(1)
height = height.replace("pt", "00")
height = height.replace("pt", "")
opts["height"] = 1.4 * int(math.ceil(float(height)))
if "width" not in opts:
width = width or re.search(r'width\="([0-9\.]*)pt"', svg)
if width is not None:
if not isstr(width):
width = width.group(1)
width = width.replace("pt", "00")
width = width.replace("pt", "")
opts["width"] = 1.35 * int(math.ceil(float(width)))
return self.svg(svgstr=svg, opts=opts, env=env, win=win)

Expand Down