<?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: Proc Template to Change Graph BorderColor for SGPLOT ?? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590402#M18897</link>
    <description>&lt;P&gt;GGO,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apologize for the problems that the documentation has caused you. We will correct the documentation for the next release of SAS. Thank you very much for your feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 13:51:13 GMT</pubDate>
    <dc:creator>sdengland</dc:creator>
    <dc:date>2019-09-20T13:51:13Z</dc:date>
    <item>
      <title>Proc Template to Change Graph BorderColor for SGPLOT ??</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/589514#M18882</link>
      <description>&lt;P&gt;Hi All - I've searched these boards and beyond, but cannot find an answer to what seems like a simple query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm relying on &lt;STRONG&gt;9.4 SAS&lt;/STRONG&gt; ODS Graphics documentation, especially:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=&lt;/A&gt;&lt;STRONG&gt;9.4_3&lt;/STRONG&gt;.4&amp;amp;docsetId=grstatug&amp;amp;docsetTarget=n1o90tknm7aywjn1angcb5ojglgs.htm&amp;amp;locale=en&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=&lt;/A&gt;&lt;STRONG&gt;9.4_3&lt;/STRONG&gt;.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0zys4h10xvsznn1s2xxv2hozkht.htm&amp;amp;locale=en&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Why does the GRAPH BORDERCOLOR setting *not* work in this simple example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*--- Demo Data ;
proc sql;
  create table hilo_data
  ( label char(15) label='Label for High-Low element'
  , low num(8) label='Low value for High-Low plot'
  , high num(8) label='High value for High-Low plot'
  , y_val num(8) label='Y-axis value for High-Low plot'
  , lcap char(15) label='Low Cap style for High-Low bars'
  , hcap char(15) label='High Cap style for High-Low bars'
  )
;

insert into hilo_data

  values('One', 1, 5, -1, 'filledArrow', '')
  values('Two', 2.5, 7.5, -2, '', '')
  values('Tre', 5, 10, -3, '', '')
  values('For', 7.5, 12.5, -4, '', '')
  values('Fiv', 10, 15, -5, '', 'filledArrow')
  ;
quit;

*--- MODIFY BORDER COLOR and AXIS COLOR ;
proc template;
  define style Modify_Graph_BorderColor;
  parent=styles.statistical;
    *--- No idea why sgplot IGNORES this element ;
    style Graph from Graph /
          BorderColor = RED
          BorderWidth = 10;
    *--- But sgplot DOES x/y axes CYAN ;
    style GraphAxisLines from GraphAxisLines /
          ContrastColor = CYAN;
  end;
run;

*--- SGPLOT ;
ods listing style=Modify_Graph_BorderColor;

ods graphics on /
    imagename="test_highlow"
    height = 6in width = 4in
    reset=index noBorder;

proc sgplot data = hilo_data ;

  yaxis display = (nolabel noticks novalues);

  highLow
    y = y_val
    high = high
    low = low /
        clipCap
        type = bar
        barwidth = 0.5
        lowLabel = label
        highCap = hcap
        lowCap = lcap;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should give you something this - CYAN axes, but NO RED top and right border:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cyan_only.PNG" style="width: 282px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32547iF9BFA00750C3E0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="cyan_only.PNG" alt="cyan_only.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the secret to modifying those remaining BorderColors?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 15:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/589514#M18882</guid>
      <dc:creator>GGO</dc:creator>
      <dc:date>2019-09-18T15:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template to Change Graph BorderColor for SGPLOT ??</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/589992#M18890</link>
      <description>&lt;P&gt;Hi GGO,&lt;/P&gt;
&lt;P&gt;The top and right borders are part of the graph wall border. In your style template, try setting GraphWalls:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*--- MODIFY BORDER COLOR and AXIS COLOR ;
proc template;
  define style Modify_Graph_BorderColor;
  parent=styles.statistical;
    *--- No idea why sgplot IGNORES this element ;
    style graphWalls from graphWalls /
          contrastcolor = RED
          lineThickness = 1px;
    *--- But sgplot DOES x/y axes CYAN ;
    style GraphAxisLines from GraphAxisLines /
          ContrastColor = CYAN;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more information, see &lt;A title="Axis Line versus Wall Outline" href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatug&amp;amp;docsetTarget=p1pqfzgbuzbpkzn1mrbzhgggvhkz.htm&amp;amp;locale=en#p1wp0lm93sf0kan1266430ixhbu1" target="_self"&gt;Axis Line versus Wall Outline&lt;/A&gt; in &lt;EM&gt;SAS Graph Template Language: User’s Guide&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 12:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/589992#M18890</guid>
      <dc:creator>sdengland</dc:creator>
      <dc:date>2019-09-19T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template to Change Graph BorderColor for SGPLOT ??</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590026#M18891</link>
      <description>&lt;P&gt;Thank you, SDengland! That worked. Sort of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, this terminology all seems muddled to me.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sgplot ... noBORDER &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&amp;amp;locale=en#n0uvk4fexldplin1vjuapljx4upz" target="_self"&gt;"removes the data-area &lt;STRONG&gt;border&lt;/STRONG&gt; from the plot"&lt;/A&gt;,&lt;/LI&gt;&lt;LI&gt;which should apparently reference the (graphwall) &lt;STRONG&gt;outline&lt;/STRONG&gt;, instead.&lt;/LI&gt;&lt;LI&gt;sgplot ... noWALL "&lt;SPAN class="xis-shortDescription"&gt;turns off the display of the graph wall’s fill and &lt;STRONG&gt;outline&lt;/STRONG&gt;&lt;/SPAN&gt;",&lt;/LI&gt;&lt;LI&gt;but actually does &lt;STRONG&gt;NOT&lt;/STRONG&gt; turn off the graphwall outline (see 2nd pic, below).&lt;/LI&gt;&lt;LI&gt;And the outline is actually modified by the &lt;STRONG&gt;GraphWall ContrastColor&lt;/STRONG&gt; setting ...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm sure it all makes sense, somehow ... but not really.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The magic combination that seems to achieve my objective (control color or &lt;STRONG&gt;graphwall outline&lt;/STRONG&gt;, aka data-area &lt;STRONG&gt;border&lt;/STRONG&gt;) is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;template snippet: style GraphWalls ... ContrastColor = purple&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraphWalls-ContrastColor.PNG" style="width: 281px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32601iFE45FF09CF5DFBAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraphWalls-ContrastColor.PNG" alt="GraphWalls-ContrastColor.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned below, this still does not explain why&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the sgplot ... noWALL option does not turn "&lt;SPAN class="xis-shortDescription"&gt;off the display of the graph wall’s fill and &lt;STRONG&gt;outline&lt;/STRONG&gt;&lt;/SPAN&gt;" (purple)&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraphWalls-ContrastColor-noWALL.PNG" style="width: 281px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32603i36EBF89E6EF56035/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraphWalls-ContrastColor-noWALL.PNG" alt="GraphWalls-ContrastColor-noWALL.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;although the sgplot ... &lt;STRONG&gt;noborder&lt;/STRONG&gt; option does&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And no matter what I do, the overall graph border ... red in my template above ... &lt;STRONG&gt;never&lt;/STRONG&gt; appears. I've tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;that template style Graph ... BorderColor, above&lt;/LI&gt;&lt;LI&gt;ods graphics ... border=on&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 19 Sep 2019 13:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590026#M18891</guid>
      <dc:creator>GGO</dc:creator>
      <dc:date>2019-09-19T13:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template to Change Graph BorderColor for SGPLOT ??</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590076#M18892</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67073"&gt;@GGO&lt;/a&gt;&amp;nbsp;, this is just a mistake in the documentation. The NOWALL and NOBORDER options are independent switches so that you have full control over the wall. The NOWALL option removes only the wall fill, while NOBORDER removes the wall border. If you want to get rid of both, specify both options. Here is a little program to demonstrate the point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
styleattrs backcolor=yellow;
scatter x=weight y=height;
run;

proc sgplot data=sashelp.class nowall;
styleattrs backcolor=yellow;
scatter x=weight y=height;
run;

proc sgplot data=sashelp.class noborder;
styleattrs backcolor=yellow;
scatter x=weight y=height;
run;

proc sgplot data=sashelp.class nowall noborder;
styleattrs backcolor=yellow;
scatter x=weight y=height;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590076#M18892</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-09-19T15:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template to Change Graph BorderColor for SGPLOT ??</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590093#M18895</link>
      <description>&lt;P&gt;The Graph style element applies to SAS/GRAPH. We will remove it from the ODS Graphics documentation. For the overall graph border in ODS Graphics, try setting GraphBorderLines in your style template:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*--- MODIFY BORDER COLOR and AXIS COLOR ;
proc template;
  define style Modify_Graph_BorderColor;
  parent=styles.statistical;
    *--- No idea why sgplot IGNORES this element ;
    style GraphBorderLines from GraphBorderLines /
          contrastColor = RED
          lineThickness = 1px;
    style graphWalls from graphWalls /
          contrastcolor = PURPLE
          lineThickness = 1px;
    *--- But sgplot DOES x/y axes CYAN ;
    style GraphAxisLines from GraphAxisLines /
          ContrastColor = CYAN;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Be sure to specify border=on in your ODS GRAPHICS statement. Be aware that GraphBorderLines affects legend borders as well. We will update the documentation to correct the NOWALL option description as Dan mentioned (thanks, Dan) and to use consistent terminology for the wall outline. Thanks for bringing this to our attention.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 16:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590093#M18895</guid>
      <dc:creator>sdengland</dc:creator>
      <dc:date>2019-09-19T16:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template to Change Graph BorderColor for SGPLOT ??</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590383#M18896</link>
      <description>&lt;P&gt;Much appreciated, Dan and SDEngland!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GraphBorderLines ContrastColor (red) does the trick ... although I never would have tried this based on the documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatug&amp;amp;docsetTarget=n1o90tknm7aywjn1angcb5ojglgs.htm&amp;amp;locale=en" target="_self"&gt;"Border around &lt;STRONG&gt;graph wall&lt;/STRONG&gt;, &lt;STRONG&gt;legend border&lt;/STRONG&gt;, borders to complete &lt;STRONG&gt;axis frame&lt;/STRONG&gt;"&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing in that "Portion of Graph Affected" suggests the color of the lines around the overall graph, which is in fact what this element controls:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraphBorderLines-ContrastColor.PNG" style="width: 294px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32639i4C03B417349B7ED9/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraphBorderLines-ContrastColor.PNG" alt="GraphBorderLines-ContrastColor.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are amazing capabilities here, but misleading or wrong documentation renders those capabilities inaccessible and frustrating. I think I was mainly using the appropriate documentation, taking an appropriate approach, but something that should have taken 5min has now taken multiple hours over several days (with my customer/boss waiting anxiously for publishable data displays to their liking ...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So thank you, both, especially for taking the documentation aspect seriously, as you've indicated, and working to clean this up.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590383#M18896</guid>
      <dc:creator>GGO</dc:creator>
      <dc:date>2019-09-20T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template to Change Graph BorderColor for SGPLOT ??</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590402#M18897</link>
      <description>&lt;P&gt;GGO,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apologize for the problems that the documentation has caused you. We will correct the documentation for the next release of SAS. Thank you very much for your feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-to-Change-Graph-BorderColor-for-SGPLOT/m-p/590402#M18897</guid>
      <dc:creator>sdengland</dc:creator>
      <dc:date>2019-09-20T13:51:13Z</dc:date>
    </item>
  </channel>
</rss>

