# work with Python View from Python shell

**URL:** https://discourse.paraview.org/t/work-with-python-view-from-python-shell/4499
**Category:** ParaView Support
**Tags:** python
**Created:** [June 4, 2020, 2:05am UTC](https://discourse.paraview.org/t/work-with-python-view-from-python-shell/4499 "2020-06-04T02:05:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lucky.mz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucky.mz/32/3337_2.png) [@lucky.mz](https://discourse.paraview.org/u/lucky.mz)
#### Post date: [June 4, 2020, 2:05am UTC](https://discourse.paraview.org/t/work-with-python-view-from-python-shell/4499/1 "2020-06-04T02:05:45Z")

</div>

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

```python
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]
ax.plot(x,y)
image = python_view.figure_to_image(figure)
from paraview.modules import vtkRemotingViewsPython
#get vtkPythonView and send image
GetActiveView().SMProxy.GetClientSideView().SetImageData(image)

```

that display nothing.  
what am I missing?

Thank You!
