|
From: Sourish B. <sou...@gm...> - 2015-04-08 16:08:56
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I have been fighting with this problem for some time. It seems that
if, on a plot, I have some text inside a bounding box, it displays
fine on the screen, saves OK as a PNG, but when I save the plot as a
PDF the padding on the right side between the text and the box
disappears. I have attached a minimal example with a text box, but
this problem occurs for legends as well, if the legend text is
long-ish. I am also attaching a PNG and a PDF output, as well as how
the PDF shows up on my viewer. Has anyone else experienced this?<br>
<br>
Other relevant info:<br>
<br>
<b>$ uname -a</b><br>
Linux Merlin 3.2.0-77-generic #114-Ubuntu SMP Tue Mar 10 17:26:03
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>
<b>$ python -c 'import matplotlib; print matplotlib.__version__'</b><br>
1.3.1<br>
<br>
<b>Where I obtained matplotlib:</b> <br>
The matplotlib SourceForge site<br>
<br>
<b>Customisations to </b><b>matplotlibrc:</b><br>
backend : Qt4Agg<br>
lines.markersize : 10 # markersize, in points<br>
font.sans-serif : Ubuntu, Calibri, Liberation Sans<br>
font.monospace : Consolas, Inconsolata, Ubuntu Mono, Droid
Sans Mono<br>
axes.color_cycle : e41a1c, 377eb8, 4daf4a, 984ea3, ff7f00, ffff33,
a65628, f781bf, 999999<br>
pdf.fonttype : 42 # Output Type 3 (Type3) or Type 42
(TrueType) # I have tried with fonttype=3 as well, and the bug still
exists<br>
<br>
<b>$ python bug_test.py --verbose-helpful > output.txt</b><br>
output.txt attached<br>
<br>
Thanks,<br>
Sourish<br>
<br>
</body>
</html>
|