<?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: How Can I Change Line Widths in PROC GPLOT or SGPLOT (SAS 9.3)? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Change-Line-Widths-in-PROC-GPLOT-or-SGPLOT-SAS-9-3/m-p/566093#M18295</link>
    <description>&lt;P&gt;Hi, DanH-san:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick reply. Your code worked for me.&lt;/P&gt;&lt;P&gt;I read SAS Manual and I think LINETHICKNESS= option can have values, 1, 2, or 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to your explanation, I understand "1" means same as the axis line width.&lt;/P&gt;&lt;P&gt;Really thanks!!&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 00:30:16 GMT</pubDate>
    <dc:creator>KentaMURANAKA</dc:creator>
    <dc:date>2019-06-14T00:30:16Z</dc:date>
    <item>
      <title>How Can I Change Line Widths in PROC GPLOT or SGPLOT (SAS 9.3)?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Change-Line-Widths-in-PROC-GPLOT-or-SGPLOT-SAS-9-3/m-p/565822#M18292</link>
      <description>&lt;P&gt;Hi, All:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate graph that includes Broken Y axis.&lt;/P&gt;&lt;P&gt;For expressing broken axis, I used SGANNO= function, and I noticed this axis-broken marks (and reference line) are slightly thicker than X &amp;amp; Y axes.&lt;/P&gt;&lt;P&gt;I would like to change these line widths and make them all look like same, but I have no ideas.&lt;/P&gt;&lt;P&gt;I want them to have 0.5 pt widths. Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code &amp;amp; output example are below.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    length subjid $200.;
    subjid="001"; time=0; aval=40; output;
    subjid="001"; time=1; aval=80; output;
    subjid="001"; time=2; aval=70; output;
    subjid="002"; time=0; aval=85; output;
    subjid="002"; time=1; aval=90; output;
    subjid="002"; time=2; aval=50; output;
run;
proc format;
    value fval
          20="0" 40="40" 60="60" 80="80" 100="100";
run;
data breakline;
    function="line"; x1=-0.02; y1=31.0; x2=0.02; y2=31.0; drawspace="datavalue"; linecolor="black"; output;
    function="line"; x1=-0.02; y1=30.0; x2=0.02; y2=30.0; drawspace="datavalue"; linecolor="black"; output;
    keep drawspace function linecolor x1 y1 x2 y2;
run;
proc template;
    define style style2.mystyle;
    parent=styles.listing;
    class graphwalls / frameborder=off;
    end;
run;
ods graphics on / reset
                  imagename="test" imagefmt=emf border=off
                  width=6in height=5in
                  ;
ods rtf file="PleaseSpecifyYourOwnFolder\test.rtf";
proc sgplot data=test noautolegend sganno=breakline;
    series x=time y=aval / group=subjid lineattrs=(pattern=1 color=black thickness=0.5pt);
    xaxis labelattrs=(color=black family="Times New Roman" size=9pt) label="Time Point" 
          values=(0 to 2 by 1) valueattrs=(color=black family="Times New Roman" size=9pt) offsetmin=0 offsetmax=0.05;
    yaxis labelattrs=(color=black family="Times New Roman" size=9pt) label="Test Value" 
          values=(20 to 100 by 20) valueattrs=(color=black family="Times New Roman" size=9pt) offsetmin=0 offsetmax=0.02;
    refline 40 90 / lineattrs=(color=black pattern=shortdash thickness=0.5pt);
    format aval fval.;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30254iD7720AE22A6A9BA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ex.PNG" alt="ex.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 12:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Change-Line-Widths-in-PROC-GPLOT-or-SGPLOT-SAS-9-3/m-p/565822#M18292</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-06-13T12:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Change Line Widths in PROC GPLOT or SGPLOT (SAS 9.3)?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Change-Line-Widths-in-PROC-GPLOT-or-SGPLOT-SAS-9-3/m-p/565856#M18293</link>
      <description>&lt;P&gt;In the annotation data set, you can set LINETHICKNESS=1 to make it match the axis line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Change-Line-Widths-in-PROC-GPLOT-or-SGPLOT-SAS-9-3/m-p/565856#M18293</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-06-13T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Change Line Widths in PROC GPLOT or SGPLOT (SAS 9.3)?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Change-Line-Widths-in-PROC-GPLOT-or-SGPLOT-SAS-9-3/m-p/566093#M18295</link>
      <description>&lt;P&gt;Hi, DanH-san:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick reply. Your code worked for me.&lt;/P&gt;&lt;P&gt;I read SAS Manual and I think LINETHICKNESS= option can have values, 1, 2, or 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to your explanation, I understand "1" means same as the axis line width.&lt;/P&gt;&lt;P&gt;Really thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 00:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Change-Line-Widths-in-PROC-GPLOT-or-SGPLOT-SAS-9-3/m-p/566093#M18295</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-06-14T00:30:16Z</dc:date>
    </item>
  </channel>
</rss>

