axes control

the different fonts available. I obtain:

    > ['Lucida Grande', 'Verdana', 'Geneva', 'Lucida',
    > 'Bitstream Vera Sans', 'Arial', 'Helvetica', 'sans-serif']

    > but if I'm trying to use the font Arial and italic in the
    > script that give me this message: Could not match
    > sans-serif, italic, normal. Returning
    > /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf

    > It's seems that the change introduce in the script is not
    > use and that matplotlib are using only Vera fonts with no
    > style.

Note that this list does not mean that these fonts are available on
your system. They are simply the fonts that matplotlib will look for
if you specify sans-serif.

    > fonts = { 'color' : 'k', 'fontname' : 'Courier',
    > 'fontweight' : 'bold', 'fontstyle' : 'italic', 'fontsize'
    > : 'xx-large'
    > }

    > ylabel('toto',fonts)

    > give me exactly the same things than:

    > fonts = { 'color' : 'k', 'fontname' : 'Arial, 'fontweight'
    > : 'bold', 'fontstyle' : 'italic', 'fontsize' : 'xx-large'
    > }

Are you sure that you have Courier and Arial on your system and are
they in your TTFPATH?

If you are sure on both counts, it may help to remove your font cache
(typically ~/.ttffont.cache on linux like systems) and let matplotlib
regenerate it's cache.

Those are my only ideas so far, let me know.

JDH

Hi John,

this was the solution thanks. I was deleting the older .fonts.cache. I didn't notice the change, I'm apoligizing for the disturbance.

Thanks again,

       Nicolas

···

Are you sure that you have Courier and Arial on your system and are
they in your TTFPATH?

If you are sure on both counts, it may help to remove your font cache
(typically ~/.ttffont.cache on linux like systems) and let matplotlib
regenerate it's cache.

Those are my only ideas so far, let me know.

JDH