Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Simon Jesenko <simon.jesenko@gm...>  20110527 11:00:11

Hi, I have a problem with large filesizes of plots saved to pdf, when using rcParams['text.usetex']=True Files are very large (~150kb for simple line plot with some mathematical latex expressions) as all fonts are fully embedded into pdf. When resulting pdf is postprocessed (e.g. as is http://zeppethefake.blogspot.com/2008/05/embeddingfontsinpdfwithghostscript.html), so that only subset of fonts is embedded, file size is reduced drastically(e.g. from 150kb to 15kb). Is there a way to enable embedding of subset of fonts in matplotlib? I am using matplotlib version 0.99.3. Did anyone else experience similar problems/found solution? Thank you for info/assistance! Simon 
From: Simon Jesenko <simon.jesenko@gm...>  20110527 11:00:11

Hi, I have a problem with large filesizes of plots saved to pdf, when using rcParams['text.usetex']=True Files are very large (~150kb for simple line plot with some mathematical latex expressions) as all fonts are fully embedded into pdf. When resulting pdf is postprocessed (e.g. as is http://zeppethefake.blogspot.com/2008/05/embeddingfontsinpdfwithghostscript.html), so that only subset of fonts is embedded, file size is reduced drastically(e.g. from 150kb to 15kb). Is there a way to enable embedding of subset of fonts in matplotlib? I am using matplotlib version 0.99.3. Did anyone else experience similar problems/found solution? Thank you for info/assistance! Simon 
From: Michael Droettboom <mdroe@st...>  20110527 13:57:26

Have you tried setting the rcParams "pdf.fonttype" to 3? That should subset the fonts. Also, the Cairo backend supports font subsetting. Mike On 05/27/2011 07:00 AM, Simon Jesenko wrote: > Hi, > > I have a problem with large filesizes of plots saved to pdf, when using > rcParams['text.usetex']=True > > Files are very large (~150kb for simple line plot with some mathematical > latex expressions) as all fonts are fully embedded into pdf. When > resulting pdf is postprocessed (e.g. as is > http://zeppethefake.blogspot.com/2008/05/embeddingfontsinpdfwithghostscript.html), > so that only subset of fonts is embedded, file size is reduced > drastically(e.g. from 150kb to 15kb). > > Is there a way to enable embedding of subset of fonts in matplotlib? > > I am using matplotlib version 0.99.3. > > Did anyone else experience similar problems/found solution? > > Thank you for info/assistance! > Simon > >  > vRanger cuts backup time in halfwhile increasing security. > With the marketleading solution for virtual backup and recovery, > you get blazingfast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/questd2dcopy1 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Simon Jesenko <simon.jesenko@gm...>  20110527 14:56:51

Setting 'pdf.fonttype'=3 had no effect, embedded fonts are of fonttype=1 nonetheless. I guess that pdf.fonttype parameter is used only when matplotlib uses it's own engine to render latex, and not when text.usetex=true is used. Cairo backend is not support when text.usetex=true (only Agg, pdf and ps according to documentation) On 05/27/2011 03:53 PM, Michael Droettboom wrote: > Have you tried setting the rcParams "pdf.fonttype" to 3? That should > subset the fonts. > > Also, the Cairo backend supports font subsetting. > > Mike > > On 05/27/2011 07:00 AM, Simon Jesenko wrote: >> Hi, >> >> I have a problem with large filesizes of plots saved to pdf, when using >> rcParams['text.usetex']=True >> >> Files are very large (~150kb for simple line plot with some mathematical >> latex expressions) as all fonts are fully embedded into pdf. When >> resulting pdf is postprocessed (e.g. as is >> http://zeppethefake.blogspot.com/2008/05/embeddingfontsinpdfwithghostscript.html), >> so that only subset of fonts is embedded, file size is reduced >> drastically(e.g. from 150kb to 15kb). >> >> Is there a way to enable embedding of subset of fonts in matplotlib? >> >> I am using matplotlib version 0.99.3. >> >> Did anyone else experience similar problems/found solution? >> >> Thank you for info/assistance! >> Simon >> >>  >> vRanger cuts backup time in halfwhile increasing security. >> With the marketleading solution for virtual backup and recovery, >> you get blazingfast, flexible, and affordable data protection. >> Download your free trial now. >> http://p.sf.net/sfu/questd2dcopy1 >> _______________________________________________ >> Matplotlibusers mailing list >> Matplotlibusers@... >> https://lists.sourceforge.net/lists/listinfo/matplotlibusers > >  > vRanger cuts backup time in halfwhile increasing security. > With the marketleading solution for virtual backup and recovery, > you get blazingfast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/questd2dcopy1 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Michael Droettboom <mdroe@st...>  20110527 15:04:57

Ah, yes. That is all true. I'm not sure what options there may be in that case. Mike On 05/27/2011 10:56 AM, Simon Jesenko wrote: > Setting 'pdf.fonttype'=3 had no effect, embedded fonts are of fonttype=1 > nonetheless. I guess that pdf.fonttype parameter is used only when > matplotlib uses it's own engine to render latex, and not when > text.usetex=true is used. > > Cairo backend is not support when text.usetex=true (only Agg, pdf and ps > according to documentation) > > On 05/27/2011 03:53 PM, Michael Droettboom wrote: >> Have you tried setting the rcParams "pdf.fonttype" to 3? That should >> subset the fonts. >> >> Also, the Cairo backend supports font subsetting. >> >> Mike >> >> On 05/27/2011 07:00 AM, Simon Jesenko wrote: >>> Hi, >>> >>> I have a problem with large filesizes of plots saved to pdf, when using >>> rcParams['text.usetex']=True >>> >>> Files are very large (~150kb for simple line plot with some mathematical >>> latex expressions) as all fonts are fully embedded into pdf. When >>> resulting pdf is postprocessed (e.g. as is >>> http://zeppethefake.blogspot.com/2008/05/embeddingfontsinpdfwithghostscript.html), >>> so that only subset of fonts is embedded, file size is reduced >>> drastically(e.g. from 150kb to 15kb). >>> >>> Is there a way to enable embedding of subset of fonts in matplotlib? >>> >>> I am using matplotlib version 0.99.3. >>> >>> Did anyone else experience similar problems/found solution? >>> >>> Thank you for info/assistance! >>> Simon >>> >>>  >>> vRanger cuts backup time in halfwhile increasing security. >>> With the marketleading solution for virtual backup and recovery, >>> you get blazingfast, flexible, and affordable data protection. >>> Download your free trial now. >>> http://p.sf.net/sfu/questd2dcopy1 >>> _______________________________________________ >>> Matplotlibusers mailing list >>> Matplotlibusers@... >>> https://lists.sourceforge.net/lists/listinfo/matplotlibusers >>  >> vRanger cuts backup time in halfwhile increasing security. >> With the marketleading solution for virtual backup and recovery, >> you get blazingfast, flexible, and affordable data protection. >> Download your free trial now. >> http://p.sf.net/sfu/questd2dcopy1 >> _______________________________________________ >> Matplotlibusers mailing list >> Matplotlibusers@... >> https://lists.sourceforge.net/lists/listinfo/matplotlibusers > >  > vRanger cuts backup time in halfwhile increasing security. > With the marketleading solution for virtual backup and recovery, > you get blazingfast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/questd2dcopy1 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Simon Jesenko <simon.jesenko@gm...>  20110530 08:46:10

Thank you for the info. I added the issue to the github for now. I will inspect the source whether there is an easy way to add subsetting of fonts for usetex=True case as well. Simon On 05/27/2011 05:02 PM, Michael Droettboom wrote: > Ah, yes. That is all true. I'm not sure what options there may be in > that case. > > Mike > > On 05/27/2011 10:56 AM, Simon Jesenko wrote: >> Setting 'pdf.fonttype'=3 had no effect, embedded fonts are of fonttype=1 >> nonetheless. I guess that pdf.fonttype parameter is used only when >> matplotlib uses it's own engine to render latex, and not when >> text.usetex=true is used. >> >> Cairo backend is not support when text.usetex=true (only Agg, pdf and ps >> according to documentation) >> >> On 05/27/2011 03:53 PM, Michael Droettboom wrote: >>> Have you tried setting the rcParams "pdf.fonttype" to 3? That should >>> subset the fonts. >>> >>> Also, the Cairo backend supports font subsetting. >>> >>> Mike >>> >>> On 05/27/2011 07:00 AM, Simon Jesenko wrote: >>>> Hi, >>>> >>>> I have a problem with large filesizes of plots saved to pdf, when using >>>> rcParams['text.usetex']=True >>>> >>>> Files are very large (~150kb for simple line plot with some mathematical >>>> latex expressions) as all fonts are fully embedded into pdf. When >>>> resulting pdf is postprocessed (e.g. as is >>>> http://zeppethefake.blogspot.com/2008/05/embeddingfontsinpdfwithghostscript.html), >>>> so that only subset of fonts is embedded, file size is reduced >>>> drastically(e.g. from 150kb to 15kb). >>>> >>>> Is there a way to enable embedding of subset of fonts in matplotlib? >>>> >>>> I am using matplotlib version 0.99.3. >>>> >>>> Did anyone else experience similar problems/found solution? >>>> >>>> Thank you for info/assistance! >>>> Simon >>>> >>>>  >>>> vRanger cuts backup time in halfwhile increasing security. >>>> With the marketleading solution for virtual backup and recovery, >>>> you get blazingfast, flexible, and affordable data protection. >>>> Download your free trial now. >>>> http://p.sf.net/sfu/questd2dcopy1 >>>> _______________________________________________ >>>> Matplotlibusers mailing list >>>> Matplotlibusers@... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlibusers >>>  >>> vRanger cuts backup time in halfwhile increasing security. >>> With the marketleading solution for virtual backup and recovery, >>> you get blazingfast, flexible, and affordable data protection. >>> Download your free trial now. >>> http://p.sf.net/sfu/questd2dcopy1 >>> _______________________________________________ >>> Matplotlibusers mailing list >>> Matplotlibusers@... >>> https://lists.sourceforge.net/lists/listinfo/matplotlibusers >>  >> vRanger cuts backup time in halfwhile increasing security. >> With the marketleading solution for virtual backup and recovery, >> you get blazingfast, flexible, and affordable data protection. >> Download your free trial now. >> http://p.sf.net/sfu/questd2dcopy1 >> _______________________________________________ >> Matplotlibusers mailing list >> Matplotlibusers@... >> https://lists.sourceforge.net/lists/listinfo/matplotlibusers > >  > vRanger cuts backup time in halfwhile increasing security. > With the marketleading solution for virtual backup and recovery, > you get blazingfast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/questd2dcopy1 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
Sign up for the SourceForge newsletter:
No, thanks