Hi John,

2013/4/18 John Ladasky <john_lada...@sbcglobal.net>

> On 04/18/2013 01:01 AM, Francesco Montesano wrote:
>
>> does plt.savefig('test.png') work?
>>
> Yes, it does!  Thank you, that was a useful hint.


Good, than I would say that is a clear sign that you have a non interactive
backend.
Can you please give use the output of plt.get_backend() ?


>
>  If the figure get saved, it can be that you are using a non interactive
>> backend
>>
> Ugh, the one thing that I never understood about Matplotlib was backends.
>  So, what am I missing?  (Whatever I am missing now, I had it working a
> year ago when I was using matplotlib 1.1.0 on Python 2.7.)
>

This link http://matplotlib.org/faq/usage_faq.html#what-is-a-backend should
explain you what a backend is.

If you want to use always a specific backend, you should select it in the
matplotlibrc file

You should have a line like this
#backend      : TkAgg
Just uncomment it and put the backend that you want to use


> I have also just tried ipython3.  Nothing that I do in the live
> interpreter displays any graphs.
>
>
That is not surprising: if matplotlib doesn't use an interactive backend,
you can't show the figures, whatever interpreter you use.

I hope that now is clearer,

Fra

ps: try to remember to reply to the list :D
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to