def METHOD_NAME(self):
    self.delayDisplay("Test plot view")
    plotChartNode = slicer.util.getNode(self.chartName)
    # Create plot view node
    plotViewNode = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLPlotViewNode")
    plotViewNode.SetPlotChartNodeID(plotChartNode.GetID())
    # Create plotWidget
    plotWidget = slicer.qMRMLPlotWidget()
    plotWidget.setMRMLScene(slicer.mrmlScene)
    plotWidget.setMRMLPlotViewNode(plotViewNode)
    plotWidget.show()
    # Create plotView
    plotView = slicer.qMRMLPlotView()
    plotView.setMRMLScene(slicer.mrmlScene)
    plotView.setMRMLPlotViewNode(plotViewNode)
    plotView.show()
    # Save variables into slicer namespace for debugging
    slicer.plotWidget = plotWidget
    slicer.plotView = plotView