show a matlibplot created in python in the python viewer

hello,

during my post processing, i created a plot using matlibplot in a python script in paraview that i runned from the python shell, so I have the plt object created, how can i displayed in paraview (ie., the plt.show() version in paraview).

thanks in advance

You may want to use a python view to do that:

hello mathieu,

I knew about this, but I was asking for a simple show image thing, not working with data itself, simply to visualize what is being exported (as a png). I do not require for treat the data and other more complex things. I would take simply creating a new renderview and using a source to open the exported file but the image looks bad, quite pixelated and with the pngImageMagnitude which changes the colors.

If you want to show an image with matplotlib within a paraview window, you have to use the python view.

If you want to show a png, save it to disk and reopen it in ParaView, uncheck map scalars and it should look as expected.

1 Like