Fernando Perez wrote: > Hey Michael, > > On Fri, Jun 20, 2008 at 7:47 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > >> John Hunter wrote: >> >>> On Fri, Jun 20, 2008 at 8:13 AM, Michael Droettboom <[EMAIL PROTECTED]> >>> wrote: >>> >>> >>> >>>> The current version of graphviz uses either cairo or gd (the default being >>>> cairo on most modern installations.) >>>> >>>> >>> >>>> Now that you've uploaded the docs, I see that the font you're getting isn't >>>> as nice as mine. I was setting "fontname" to "sans", which is supposed to >>>> get the default sans serif font on the system. It appears, from testing, >>>> one can provide a list of fonts to dot, so I'll change it to try good fonts >>>> first, with sans as the last resort fallback. >>>> >>>> >>> I'm building and uploading the docs in a nightly cron on a linux box >>> that Fernando maintains. Can you tell him what package(s) need to be >>> installed to insure cairo rendering so he can update the box? >>> >> My understanding is that gd doesn't support antialiasing at all, so if >> you're seeing antialiasing you're using Cairo. To be absolutely certain >> you're using Cairo, you can change the "-Tpng" to "-Tpng:cairo" (though >> I don't know if we should do that in general, since it will break for >> users who don't have Cairo, if such users exist...). >> >> With my latest updates, you should ensure that there is a decent-looking >> font, such as Vera Sans, on the fontconfig path. You should also make >> sure that libpango is being used by your graphviz. It's optional in >> graphviz, but is used by the pre-built packages on Debian Etch and >> Ubuntu Hardy at least. >> > > Unfortunately this is a Fedora 8 box that was given to me. I do have > sudo access, so I can install whatever we want, but it's not ubuntu. > I may update it to Ubuntu later (that's what I use on all my regular > machines) but right now I'm too busy for that. > I didn't mean to imply that Debian/Ubuntu was required, those are just the ones that I looked at as a sampling. It looks like Fedora 8 also links graphviz with libpango, according to its rpm spec. > Do you have any clue as to what packages might do the trick for > Fedora? I'm happy to add anything, I just don't know what to look > for... > It looks like you're already good to go, judging by what's now up on matplotlib.sf.net. My change this morning to use "Vera Sans", if available, rather than "sans" (which maps to the default sans-serif font on the system), seems to have done the trick.
The issues John pointed out -- the fuzzy rectangles, bad arrowhead alignment -- seem to just be what graphviz does. We're not going to get any better without being clever. Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel