python nltk plots are not showing up

I have posted the following message in StackOverflow about my problem with graph plotting using python nltk using Matplotlib and numpy.

Advices will be tremendously helpful. Thanks in advance.

http://stackoverflow.com/questions/9661909/python-nltk-plots-are-not-showing-up

What is the result of:

python -c "import matplotlib; print matplotlib.get_backend()"
python -c "import matplotlib; print matplotlib.matplotlib_fname()"

And when you run setup.py build, what is the first block of output showing all the libraries and dependencies?

For whatever reason, it sounds like your mpl backend is not an interactive backend.

Eric

···

On 03/12/2012 06:05 AM, Gias Uddin wrote:

I have posted the following message in StackOverflow about my problem
with graph plotting using python nltk using Matplotlib and numpy.
Advices will be tremendously helpful. Thanks in advance.

numpy - python nltk plots are not showing up - Stack Overflow

This usually happens when you're using a non interactive backend.
What's the output of plt.get_backend()?

Goyo

···

El día 12 de marzo de 2012 17:05, Gias Uddin <gias98@...287...> escribió:

I have posted the following message in StackOverflow about my problem with
graph plotting using python nltk using Matplotlib and numpy.
Advices will be tremendously helpful. Thanks in advance.

numpy - python nltk plots are not showing up - Stack Overflow

plt.get_backend()

‘agg’

···

On Mon, Mar 12, 2012 at 4:00 PM, Goyo <goyodiaz@…287…> wrote:

El día 12 de marzo de 2012 17:05, Gias Uddin <gias98@…287…> escribió:

I have posted the following message in StackOverflow about my problem with

graph plotting using python nltk using Matplotlib and numpy.

Advices will be tremendously helpful. Thanks in advance.

http://stackoverflow.com/questions/9661909/python-nltk-plots-are-not-showing-up

This usually happens when you’re using a non interactive backend.

What’s the output of plt.get_backend()?

Goyo

If I understand, this should have given me “TkAgg”.

so, the backend is not working properly.

···

On Mon, Mar 12, 2012 at 4:49 PM, Gias Uddin <gias98@…287…> wrote:

plt.get_backend()

‘agg’

On Mon, Mar 12, 2012 at 4:00 PM, Goyo <goyodiaz@…287…> wrote:

El día 12 de marzo de 2012 17:05, Gias Uddin <gias98@…985…> escribió:

I have posted the following message in StackOverflow about my problem with

graph plotting using python nltk using Matplotlib and numpy.

Advices will be tremendously helpful. Thanks in advance.

http://stackoverflow.com/questions/9661909/python-nltk-plots-are-not-showing-up

This usually happens when you’re using a non interactive backend.

What’s the output of plt.get_backend()?

Goyo

If I understand, this should have given me "TkAgg".
so, the backend is not working properly.

No, the backend is fine, it is just the wrong one. Most likely, when you built mpl, the libraries for the gui backends were not found.

Try:

sudo apt-get build-dep python-matplotlib

and then try building and installing mpl again.

Eric

···

On 03/12/2012 10:57 AM, Gias Uddin wrote:

On Mon, Mar 12, 2012 at 4:49 PM, Gias Uddin <gias98@...287... > <mailto:gias98@…287…>> wrote:

     >>> plt.get_backend()
    'agg'

    On Mon, Mar 12, 2012 at 4:00 PM, Goyo <goyodiaz@...287... > <mailto:goyodiaz@…287…>> wrote:

        El día 12 de marzo de 2012 17:05, Gias Uddin <gias98@...287... > <mailto:gias98@…287…>> escribió:
         > I have posted the following message in StackOverflow about my
        problem with
         > graph plotting using python nltk using Matplotlib and numpy.
         > Advices will be tremendously helpful. Thanks in advance.
         >
        numpy - python nltk plots are not showing up - Stack Overflow

        This usually happens when you're using a non interactive backend.
        What's the output of plt.get_backend()?

        Goyo

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options