work with Python View from Python shell

Hi! I work with matplotlib using Python Shell (not script area), here is my code

from paraview import python_view
figure = python_view.matplotlib_figure(829, 342)
ax = figure.add_subplot(1,1,1)
ax.set_title('Plot title')
ax.set_xlabel('X label')
ax.set_ylabel('Y label')
x = [1,2,3,4,5,6]
y = [10,2,3,4,5,21]
image = python_view.figure_to_image(figure)
from paraview.modules import vtkRemotingViewsPython
#get vtkPythonView and send image

that display nothing.
what am I missing?

Thank You!