Commit 48880c16 authored by Madhur Tandon's avatar Madhur Tandon

Align the Figure and Buttons Toolbar to the center.

- Made the ``matplotlib figure`` align to the center of the body of the text.
- The buttons toolbar is now aligned to the center of the plot.
parent 9a24b290
......@@ -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