office.WordChart

office.WordChart(self, number, name, title, figure)

One chart of a Word document, drawn and ready for maidr.

Pass it to :func:maidr.show, :func:maidr.render, :func:maidr.save_html or :func:maidr.close as you would a matplotlib figure.

Attributes

Name Type Description
number int The chart’s place among the document’s charts, counting from 1 in reading order.
name str The chart’s name in Word, such as "Chart 1".
title str or None The title Word shows on the chart, or None when it shows none.
figure matplotlib.figure.Figure The chart drawn with matplotlib. It is not managed by pyplot, so plt.show() does not show it.