<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>
Sourish, We no longer are updating the 1.3.x releases. Can you reproduce this problem using 1.4.3? Tom On Thu, May 7, 2015 at 11:14 AM Sourish Basu <sou...@gm...> wrote: > Hello, > > 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? > > Other relevant info: > > *$ uname -a* > 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 > > *$ python -c 'import matplotlib; print matplotlib.__version__'* > 1.3.1 > > *Where I obtained matplotlib:* > The matplotlib SourceForge site > > *Customisations to **matplotlibrc:* > backend : Qt4Agg > lines.markersize : 10 # markersize, in points > font.sans-serif : Ubuntu, Calibri, Liberation Sans > font.monospace : Consolas, Inconsolata, Ubuntu Mono, Droid Sans Mono > axes.color_cycle : e41a1c, 377eb8, 4daf4a, 984ea3, ff7f00, ffff33, a65628, > f781bf, 999999 > pdf.fonttype : 42 # Output Type 3 (Type3) or Type 42 > (TrueType) # I have tried with fonttype=3 as well, and the bug still exists > > *$ python bug_test.py --verbose-helpful > output.txt* > output.txt attached > > Thanks, > Sourish > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">Tom,<br> <br> I just updated to 1.4.3, and yes, the bug is still there. I am attaching the PDF and PNG outputs, the python script, as well as the output from 'python textbox_padding_pdf.py --verbose-helpful > output.txt'.<br> <br> -Sourish<br> <br> On 05/07/2015 11:19 AM, Thomas Caswell wrote:<br> </div> <blockquote cite="mid:CAA48SF-o=+ci_aj+zM1J=cTD...@ma..." type="cite"> <div dir="ltr">Sourish,<br> <br> We no longer are updating the 1.3.x releases. Can you reproduce this problem using 1.4.3? <div><br> </div> <div>Tom</div> </div> <br> <div class="gmail_quote">On Thu, May 7, 2015 at 11:14 AM Sourish Basu <<a moz-do-not-send="true" href="mailto:sou...@gm...">sou...@gm...</a>> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div 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> </div> ------------------------------------------------------------------------------<br> One dashboard for servers and applications across Physical-Virtual-Cloud<br> Widest out-of-the-box monitoring support with 50+ applications<br> Performance metrics, stats and reports that give you Actionable Insights<br> Deep dive visibility with transaction tracing using APM Insight.<br> <a moz-do-not-send="true" href="http://ad.doubleclick.net/ddm/clk/290420510;117567292;y" target="_blank">http://ad.doubleclick.net/ddm/clk/290420510;117567292;y</a>_______________________________________________<br> Matplotlib-users mailing list<br> <a moz-do-not-send="true" href="mailto:Mat...@li..." target="_blank">Mat...@li...</a><br> <a moz-do-not-send="true" href="https://lists.sourceforge.net/lists/listinfo/matplotlib-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/matplotlib-users</a><br> </blockquote> </div> </blockquote> <br> <br> <div class="moz-signature">-- <br> <b>Q:</b> What if you strapped C4 to a boomerang? Could this be an effective weapon, or would it be as stupid as it sounds?<br> <b>A:</b> Aerodynamics aside, I’m curious what tactical advantage you’re expecting to gain by having the high explosive fly back at you if it misses the target.<br> </div> </body> </html>