<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SGPLOT line thickness misbehaving with higher resolution svg files. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-line-thickness-misbehaving-with-higher-resolution-svg/m-p/989302#M25940</link>
    <description>&lt;P&gt;I see you still use imagefmt=.&lt;BR /&gt;It's called outputfmt= nowadays. (&lt;SPAN&gt;The OUTPUTFMT= option was previously named the IMAGEFMT= option.)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can confirm the problem with line thickness&amp;nbsp;gets worse as the DPI (image_dpi=) increases, but I don't know why. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I usually use image_dpi=600 myself.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;What if you use another ODS destination?&lt;BR /&gt;You can use OUTPUTFMT=SVG with&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS HTML&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS HTML5&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS Powerpoint&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS EXCEL&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS WORD&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;What if you use another vector-based format?&lt;BR /&gt;Like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;OUTPUTFMT=PDF (portable document format) OR&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;OUTPUTFMT=EPSI (Adobe encapsulated PostScript interchange)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2026 13:27:40 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2026-06-05T13:27:40Z</dc:date>
    <item>
      <title>SGPLOT line thickness misbehaving with higher resolution svg files.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-line-thickness-misbehaving-with-higher-resolution-svg/m-p/989265#M25939</link>
      <description>&lt;P&gt;edit: apologies.&amp;nbsp; first time user not aware there is a separate graphics forum.&amp;nbsp; if mods can move, please do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following 2 pieces of code produce very different graphs even though the line thickness is 1.9px in the first and 2.0px in the second.&amp;nbsp; It doesn't matter whether I use pt or px as the units (it just breaks at a different point).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i create a png image instead of svg, it behaves exactly as expected. &amp;nbsp;If I leave out the image_dpi option it behaves as expected.&amp;nbsp; Using a lower dpi reduces the problem while higher dpi makes the problem even worse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I require an svg file with at least 600dpi and I’d like to get an image with a line thickness somewhere between ultra-fine and pre-school crayola.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE 1:&lt;/P&gt;&lt;P&gt;ods html close;&lt;BR /&gt;ods html5 options(svg_mode="embed") image_dpi=600;&lt;BR /&gt;ods graphics /imagefmt=svg;&lt;BR /&gt;proc sgplot data=_plot noautolegend;&lt;BR /&gt;step x=time y=Survival / group=Stratum lineattrs=(thickness=1.9px);&lt;BR /&gt;scatter x=time y=Censored / group=Stratum markerattrs=(symbol=plus size=8);&lt;BR /&gt;run;&lt;BR /&gt;ods html5 close;&lt;BR /&gt;ods html;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE2:&lt;/P&gt;&lt;P&gt;ods html close;&lt;BR /&gt;ods html5 options(svg_mode="embed") image_dpi=600;&lt;BR /&gt;ods graphics /imagefmt=svg;&lt;BR /&gt;proc sgplot data=_plot noautolegend;&lt;BR /&gt;step x=time y=Survival / group=Stratum lineattrs=(thickness=2px);&lt;BR /&gt;scatter x=time y=Censored / group=Stratum markerattrs=(symbol=plus size=8);&lt;BR /&gt;run;&lt;BR /&gt;ods html5 close;&lt;BR /&gt;ods html;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/115685i11D31BDF2EA958F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.jpg" alt="Capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 14:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-line-thickness-misbehaving-with-higher-resolution-svg/m-p/989265#M25939</guid>
      <dc:creator>dmauger</dc:creator>
      <dc:date>2026-06-04T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT line thickness misbehaving with higher resolution svg files.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-line-thickness-misbehaving-with-higher-resolution-svg/m-p/989302#M25940</link>
      <description>&lt;P&gt;I see you still use imagefmt=.&lt;BR /&gt;It's called outputfmt= nowadays. (&lt;SPAN&gt;The OUTPUTFMT= option was previously named the IMAGEFMT= option.)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can confirm the problem with line thickness&amp;nbsp;gets worse as the DPI (image_dpi=) increases, but I don't know why. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I usually use image_dpi=600 myself.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;What if you use another ODS destination?&lt;BR /&gt;You can use OUTPUTFMT=SVG with&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS HTML&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS HTML5&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS Powerpoint&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS EXCEL&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;ODS WORD&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;What if you use another vector-based format?&lt;BR /&gt;Like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;OUTPUTFMT=PDF (portable document format) OR&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;OUTPUTFMT=EPSI (Adobe encapsulated PostScript interchange)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 13:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-line-thickness-misbehaving-with-higher-resolution-svg/m-p/989302#M25940</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-06-05T13:27:40Z</dc:date>
    </item>
  </channel>
</rss>

