New user of matplotlib : some problem with version 0.62.4

Hello, I'm a new user of matplotlib and I have to admit that

    > I'm quite impressed and excited about it ! I'm currently
    > trying to convince the whole company to switch from matlab
    > to python (at least 200 users I think), and matplotlib is a
    > big asset.

Good luck - is yours a software company? 200 new developers would be
a big help :slight_smile:

    > Extra content at the end of the document Could not load
    > filename for text
    > /users/m024234/local/share/matplotlib/Vera.ttf Traceback

Here is your problem. The font is not being loaded. First, in
matplotlib/backends/backend_agg.py on or around line 240, replace the
block

        if font is None:
            fname = fontManager.findfont(prop)
            try: font = FT2Font(str(fname))
            except RuntimeError, msg:
                print >> sys.stderr, 'Could not load filename for text', \
                      fname
                return None
            else:
                _fontd[key] = font

with

        if font is None:
            fname = fontManager.findfont(prop)
            font = FT2Font(str(fname))
            _fontd[key] = font

in other words, don't catch the exception. This may give you extra
information about what is going wrong.

I notice from your path above that you have installed matplotlib in a
nonstandard location. Have you set the MATPLOTLIB environment
variable, as described in the installing documentation on the web page
http://matplotlib.sf.net/installing.html?

Do you get the same traceback on win32?

Gladly-accepting-donationsly-yours,
JDH

    > Hello, I'm a new user of matplotlib and I have to admit that
    > I'm quite impressed and excited about it ! I'm currently
    > trying to convince the whole company to switch from matlab
    > to python (at least 200 users I think), and matplotlib is a
    > big asset.

Good luck - is yours a software company? 200 new developers would be
a big help :slight_smile:

No, we mainly use matlab for our own studies. But you can be sure that I
will report any bugs that we found.

    > Extra content at the end of the document Could not load
    > filename for text
    > /users/m024234/local/share/matplotlib/Vera.ttf Traceback

Here is your problem. The font is not being loaded. First, in

Ah ! *slap forehead*

I found a ".ttffont.cache." in my home directory which was the remnants
of a previous installation. Inside was the old path to the font
directory. I deleted this file, and a new one with the good path was
created and everything run smoothly now.

I notice from your path above that you have installed matplotlib in a
nonstandard location. Have you set the MATPLOTLIB environment
variable, as described in the installing documentation on the web page
http://matplotlib.sf.net/installing.html?

??? I never set the matplotlib environment and so far everything works
fine (even if I always use non standard location !)...

Do you get the same traceback on win32?

No the problem was entirely different.
I was using the enthought python 2.3.3 with the IDE SPE 0.5.1d, and when
under SPE I tried to run a program as simple as :
from matplotlib.matlab import *
subplot(2,3,5)
show()

A screen with weird color appeared, and everything froze.

Now If I tried to run the same program directly from command-line (say
from a DOS window), everything works fine.

Is there some problem with SPE ?
It's strange because it was ok with the 0.60.2 version of matplotlib

Let me know if I can do anything to further investigate the problem...

Gladly-accepting-donationsly-yours,
JDH

I really really hope to convince them to give you something (not yet
thought, I still have to convince them to switch to python/matplotlib).
At least to show you that someone outside appreciate the software and
that it's worth continuing the project...

Thanks for your help !

Regards,