<?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: Font Stretching by SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942911#M25005</link>
    <description>&lt;P&gt;The image approach should work, but try the other I mentioned as well. If it works, it will allow you to keep vector-based output, which tends to be sharper and create smaller PDF files.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 14:49:47 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2024-09-06T14:49:47Z</dc:date>
    <item>
      <title>Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942903#M24999</link>
      <description>&lt;P&gt;I have font stretching in the vertical axis as shown below. All values on the plot at stretched this way. I tried various sizes, reset graphics, set scale = off, nothing seems to work. What other options do I have?&lt;/P&gt;
&lt;P&gt;How they do look:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Hopper_1-1725632638982.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100054i92095F260E7CE125/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Hopper_1-1725632638982.png" alt="_Hopper_1-1725632638982.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How they should look&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Hopper_2-1725632675434.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100055i2BBCA8540EC59EA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Hopper_2-1725632675434.png" alt="_Hopper_2-1725632675434.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Code follows:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro figure_format1();&lt;BR /&gt;styleattrs datasymbols= (CircleFilled CircleFilled TriangleFilled TriangleFilled DiamondFilled DiamondFilled)&lt;BR /&gt;datacontrastcolors=(lipgr depk libgr vigb gray black)&lt;BR /&gt;datalinepatterns= (solid solid solid solid); *(dash solid dash solid);&lt;BR /&gt;legenditem type=markerline name="G4F" / label="Group4 FE"&lt;BR /&gt;lineattrs=(pattern=solid color=lipgr thickness=4) &lt;BR /&gt;markerattrs=(symbol=CircleFilled color=libgr size=9pt); &lt;BR /&gt;legenditem type=markerline name="G4S" / label="Group4 SE" &lt;BR /&gt;lineattrs=(pattern=solid color=depk thickness=4) &lt;BR /&gt;markerattrs=(symbol=CircleFilled color=depk size=9pt); &lt;BR /&gt;legenditem type=markerline name="G5F" / label="Group5 FE"&lt;BR /&gt;lineattrs=(pattern=solid color=libgr thickness=4) &lt;BR /&gt;markerattrs=(symbol=TriangleFilled color=libgr size=9pt); &lt;BR /&gt;legenditem type=markerline name="G5S" / label="Group5 SE" &lt;BR /&gt;lineattrs=(pattern=solid color=vigb thickness=4) &lt;BR /&gt;markerattrs=(symbol=TriangleFilled color=vigb size=9pt); &lt;BR /&gt;legenditem type=markerline name="G6F" / label="Group6 FE"&lt;BR /&gt;lineattrs=(pattern=solid color=gray thickness=4) &lt;BR /&gt;markerattrs=(symbol=DiamondFilled color=gray size=9pt); &lt;BR /&gt;legenditem type=markerline name="G6S" / label="Group6 SE" &lt;BR /&gt;lineattrs=(pattern=solid color=black thickness=4) &lt;BR /&gt;markerattrs=(symbol=DiamondFilled color=black size=9pt); &lt;BR /&gt;keylegend "G4S" "G4F" "G5S" "G5F" "G6S" "G6F" / title=""; &lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sgplot data=AVAL_mean NOAUTOLEGEND;&lt;BR /&gt;%figure_format1; &lt;BR /&gt;series x= MONTH y= MEAN / group= EYEFL LINEATTRS= (THICKNESS= 4); &lt;BR /&gt;scatter x= MONTH y= MEAN / group= EYEFL markerattrs= (size= 9pt);&lt;BR /&gt;xaxis min=0 max= 36 VALUES= (0 to 24 by 6,36) VALUESHINT minor minorcount=1 &lt;BR /&gt;LABELATTRS=(size=12pt) VALUEATTRS=(size=12pt);&lt;BR /&gt;yaxis VALUESHINT minor minorcount=1 &lt;BR /&gt;LABELATTRS=(size=12pt) VALUEATTRS=(size=12pt);&lt;BR /&gt;xaxistable N / x=MONTH class=EYE_N classorder=descending&lt;BR /&gt;LABELATTRS=(size=9pt) VALUEATTRS=(size=9pt);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Graphics options to start:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods graphics /reset;&lt;BR /&gt;options printerpath = pdf;&lt;BR /&gt;option orientation=landscape;&lt;BR /&gt;ods graphics / AttrPriority=None; * to override default attributes (color, line type, and marker, etc);&lt;BR /&gt;ods graphics on / width=9in height=6.5in scale = off;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942903#M24999</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-09-06T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942906#M25001</link>
      <description>&lt;P&gt;A couple of questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In what environment are running (e.g. EG, SAS Studio, DisplayManager, batch)?&lt;/LI&gt;
&lt;LI&gt;I see you setting the printer path, but which output destination are you using?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942906#M25001</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-09-06T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942907#M25002</link>
      <description>&lt;P&gt;Environment is Windows 11 PC Install&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output destination is PDF.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942907#M25002</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-09-06T14:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942909#M25003</link>
      <description>&lt;P&gt;Try these two things:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove PRINTPATH (it's not needed)&lt;/LI&gt;
&lt;LI&gt;Instead of setting both WIDTH and HEIGHT, try setting just one of them. This will allow the graph to maintain its original aspect.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Let us know if that works.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:47:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942909#M25003</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-09-06T14:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942910#M25004</link>
      <description>&lt;P&gt;I think I may have found a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the png device and give it an imagename&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option orientation=landscape device = png;&lt;BR /&gt;ods graphics / imagename='Swimmer_93' AttrPriority=None;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942910#M25004</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-09-06T14:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942911#M25005</link>
      <description>&lt;P&gt;The image approach should work, but try the other I mentioned as well. If it works, it will allow you to keep vector-based output, which tends to be sharper and create smaller PDF files.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942911#M25005</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-09-06T14:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942912#M25006</link>
      <description>&lt;P&gt;For the image approach, you should set the output type on the ODS GRAPHICS statement, not on the DEVICE option (even though it worked). The OUTPUTFMT option is the supported way to specify the output type for ODS Graphics output. The IMAGENAME is not required here, as the image is embedded in the PDF file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics / outputfmt=png;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942912#M25006</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-09-06T14:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Font Stretching by SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942924#M25007</link>
      <description>&lt;P&gt;Dan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears to work fine. However, I need to keep the image option otherwise the fonts do not render correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 16:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Font-Stretching-by-SGPLOT/m-p/942924#M25007</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-09-06T16:29:07Z</dc:date>
    </item>
  </channel>
</rss>

