<div dir="ltr"><span style="font-size:12.800000190734863px">Hi,</span><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">I've created a ParaView plugin (.xml file) that takes an input .txt file and creates an image (similar to this example: </span><a href="https://www.paraview.org/Wiki/Python_Programmable_Filter#Generating_Data_.28Programmable_Source.29" rel="noreferrer" target="_blank" style="font-size:12.800000190734863px">https://www.paraview.org/Wiki/<wbr>Python_Programmable_Filter#Gen<wbr>erating_Data_.28Programmable_<wbr>Source.29</a><span style="font-size:12.800000190734863px">).  Now I want add some script to my python code that will allow for matplotlib plots to be made in a separate window.  It seems like this is possible from Figure 4.15 of the most recent guide.  Is there any easy way to do this?</span><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">I made up the following script to add to the end of my code to just generate a simple histogram, but so far nothing shows up.  I've also tested it in the Programmable Source python script box with no luck.</span><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">from paraview import python_view</span><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">figure = python_view.matplotlib_figure (100 , 100)</span><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">ax = figure.add_subplot(1,1,1)</span><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">ax.hist([4, 21, 4, 5, 2, 5, 6, 23, 21, 12, 11, 5], bins =10)</span><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">python_view.figure_to_image(fi</span><wbr style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">gure)</span><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">I've also tried to create a 'PythonView', but all that does is create a black screen.</span><br style="font-size:12.800000190734863px"><br style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">Thanks</span><br></div>