views:

44

answers:

0

When using Matplotlib (Pylab) for rendering Text with the same metrics as AriaL (e.g., Arial itself or Liberation Sans) output looks ok - e.g., the width of the legend box is right.

However, when using other fonts it seems that Matplotlib wrongly estimates the expected size of the text. For example, with Bitstream Vera Sans the text seems to be wider than expected by Matplotlib: E.g., the right-hand side of the text sometimes overlaps with the right-hand side of the legend's box.

Similiarly, when using use_latex to let Latex render the output the text seems to be narrower than expected, and there's an additional space between the right-hand side of the text and the legend's box.

Is this a bug in Matplotlib? Or am I expected to use fonts with the metrics of Arial?