Commit a38bf8af authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #314 from madhur-tandon/master

Align the matplotlib Figure and Buttons Toolbar to the center.
parents 9a24b290 48880c16
......@@ -132,7 +132,10 @@ class FigureCanvasWasm(backend_agg.FigureCanvasAgg):
width *= self._ratio
height *= self._ratio
div = self.create_root_element()
div.setAttribute('style', 'width: {}px'.format(width / self._ratio))
div.setAttribute(
'style', 'margin: 0 auto; text-align: center;' +
'width: {}px'.format(width / self._ratio)
)
div.id = self._id
# The top bar
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment