'Add a plot to the report.
Both arguments can be omitted.
- `report_plot("graph name", self.plotView)` reports plot
`self.plotView` with name `"graph name"`
- `report_plot(self.plotView) reports plot without name
- `report_plot()` reports plot stored in attribute whose name is
taken from `self.graph_name`
- `report_plot("graph name")` reports plot stored in attribute
whose name is taken from `self.graph_name`
:param name: report section name (can be omitted)
:type name: str or tuple or OrderedDict
:param plot: plot widget
:type plot:
QGraphicsScene or pyqtgraph.PlotItem or pyqtgraph.PlotWidget
or pyqtgraph.GraphicsWidget. If omitted, the name of the
attribute storing the graph is taken from `self.graph_name`'

def report_plot(self, name=None, plot=None):

    if (not (isinstance(name, str) and (plot is None))):
        (name, plot) = self._fix_args(name, plot)
    from pyqtgraph import PlotWidget, PlotItem, GraphicsWidget, GraphicsView
    from Orange.widgets.utils.webview import WebviewWidget
    self.report_name(name)
    if (plot is None):
        plot = getdeepattr(self, self.graph_name)
    if isinstance(plot, (QGraphicsScene, PlotItem)):
        self.report_html += get_html_img(plot)
    elif isinstance(plot, PlotWidget):
        self.report_html += get_html_img(plot.plotItem)
    elif isinstance(plot, GraphicsWidget):
        self.report_html += get_html_img(plot.scene())
    elif isinstance(plot, GraphicsView):
        self.report_html += get_html_img(plot)
    elif isinstance(plot, WebviewWidget):
        try:
            svg = plot.svg()
        except IndexError:
            svg = plot.html()
        self.report_html += svg
