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.

>   The
> anti-aliasing on some of the arrows looks pretty poor -- eg the arrow
> from matplotlib.text.Text -> matplotlib.text.Annotation at
> http://matplotlib.sourceforge.net/doc/html/api/artist_api.html.  Is it
> better on your box?
No.  Not any better.
>   Also, the start and end of the arrow locations is
> pretty unsatisfying.  You would think they could hit the box edges...
>   
Yes.  That is surprising.  Even for arrows that are straight and axis 
aligned it doesn't seem to always work.  PDF output isn't any better, 
suggesting it's not just a low-level rendering issue.
> Is there a way to inform dot/graphiz to not exceed a certain width?
> If so, I think we should set it so the images are not wider than some
> reasonable browser window for the html.
>   
Yes.  You can change the "size" graph option which is given in inches 
(with a default dpi for png of 96).  I've set this to 8, which should 
work for resolutions of 1024x768, accounting for the left margin of the 
webpage.  Note that if the size exceeds this, the layout doesn't change, 
it is just scaled down.

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

Reply via email to