# GUI backend MATPLOTLIB in Sage

Dear all,

- UPDATED:

How can one **export** the data (a object) 'matplotlib.figure.Figure' the namespace of Sagemath to IPython? Can the data be saved in a format (**not** png, pdf, etc.) that can be opened in IPython using the function **show()**?

Here is a related Question. I have followed this instruction step by step, every step was successfully executed without any error report/message. However I couldn't invoke TkAgg as Backend of Sagemath nor IPython.

Has SAGE a GUI back-end as MATPLOTLIB, on which one can **zoom, select points** etc.?

for example,

```
sage: bodes['entire']
<matplotlib.figure.Figure at 0x91ac950>
sage: bodes['entire'].show()
# It doesn't work and a Warning occurs.
/opt/sagemath/sage-6.1.1-x86_64-Linux/local/lib/python2.7/
site-packages/matplotlib/figure.py:362: UserWarning: matplotlib is
currently using a non-GUI backend, so cannot show the figure
"matplotlib is currently using a non-GUI backend, "
sage: f = bodes['entire']
sage: f.savefig('./figures/entire.png')
# I can only save my plotting in formats : png, pdf, etc..
```

Thank you all in advance!

Only steps 6 to 9 are important because by default matplotlib is built without GUI support within Sage. It worked for me. Try again with removing all related to TkAgg.

You can try to use http://www.math.uiuc.edu/~nmd//temp/tkplot.py