<?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 to thicken a dash line in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423724#M14614</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183997"&gt;@TristanTang&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is maybe some limitation with the graphic device you're using.&lt;/P&gt;
&lt;P&gt;You may want to follow-up with Technical Support as I can reproduce the behavior with SAS9.4 TS1M5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, one possible workaround could be to add the &lt;STRONG&gt;&lt;EM&gt;DATASKIN&lt;/EM&gt; &lt;/STRONG&gt;option to your &lt;STRONG&gt;&lt;EM&gt;STEP&lt;/EM&gt; &lt;/STRONG&gt;statement, cf the &lt;A href="http://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0t1wmeqmh5d16n10uui6uatm1dh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=fr#n14kr95kkmeuh0n1hbaha6dpxa24p" target="_self"&gt;SGPLOT Procedure&lt;/A&gt;&amp;nbsp;documentation.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;step x=time y=survival / group=stratum name='s' dataskin=crisp;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2017 14:11:31 GMT</pubDate>
    <dc:creator>Damo</dc:creator>
    <dc:date>2017-12-27T14:11:31Z</dc:date>
    <item>
      <title>How to thicken a dash line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423673#M14610</link>
      <description>&lt;P&gt;My data and SAS code are as below.&lt;/P&gt;&lt;P&gt;i can change color and pattern for the step line.However, i can't change the thickness for a dash line.&lt;/P&gt;&lt;P&gt;Is there way to thicken the dashline?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data plot;&lt;BR /&gt;missing z;&lt;BR /&gt;input&lt;BR /&gt;Time Survival Event Censored Stratum $;&lt;BR /&gt;;&lt;BR /&gt;datalines ;&lt;BR /&gt;0 1 0 .z Arm_A&lt;BR /&gt;1.971252567 0.944444444 1 .z Arm_A&lt;BR /&gt;3.811088296 .z 0 0.944444444 Arm_A&lt;BR /&gt;5.9137577 0.885416667 1 .z Arm_A&lt;BR /&gt;7.392197125 0.826388889 1 .z Arm_A&lt;BR /&gt;10.61190965 0.767361111 1 .z Arm_A&lt;BR /&gt;15.27720739 0.708333333 1 .z Arm_A&lt;BR /&gt;15.70431211 0.649305556 1 .z Arm_A&lt;BR /&gt;17.90554415 0.590277778 1 .z Arm_A&lt;BR /&gt;18.95687885 0.53125 1 .z Arm_A&lt;BR /&gt;19.8110883 0.472222222 1 .z Arm_A&lt;BR /&gt;23.22792608 0.413194444 1 .z Arm_A&lt;BR /&gt;23.9835729 0.354166667 1 .z Arm_A&lt;BR /&gt;28.32032854 0.295138889 1 .z Arm_A&lt;BR /&gt;28.91170431 0.236111111 1 .z Arm_A&lt;BR /&gt;32.98562628 0.177083333 1 .z Arm_A&lt;BR /&gt;37.48665298 0.118055556 1 .z Arm_A&lt;BR /&gt;38.57084189 0.059027778 1 .z Arm_A&lt;BR /&gt;45.30595483 0 1 .z Arm_A&lt;BR /&gt;0 1 0 .z Arm_B&lt;BR /&gt;2.694045175 0.95 1 .z Arm_B&lt;BR /&gt;3.712525667 0.9 1 .z Arm_B&lt;BR /&gt;5.223819302 0.85 1 .z Arm_B&lt;BR /&gt;7.030800821 0.8 1 .z Arm_B&lt;BR /&gt;7.983572895 0.75 1 .z Arm_B&lt;BR /&gt;8.936344969 0.7 1 .z Arm_B&lt;BR /&gt;9.46201232 0.65 1 .z Arm_B&lt;BR /&gt;10.67761807 0.6 1 .z Arm_B&lt;BR /&gt;12.45174538 0.55 1 .z Arm_B&lt;BR /&gt;14.88295688 0.5 1 .z Arm_B&lt;BR /&gt;16.26283368 0.45 1 .z Arm_B&lt;BR /&gt;18.29979466 .z 0 0.45 Arm_B&lt;BR /&gt;18.46406571 .z 0 0.45 Arm_B&lt;BR /&gt;21.45379877 0.385714286 1 .z Arm_B&lt;BR /&gt;23.35934292 0.321428571 1 .z Arm_B&lt;BR /&gt;26.7761807 0.257142857 1 .z Arm_B&lt;BR /&gt;29.37166324 .z 0 0.257142857 Arm_B&lt;BR /&gt;30.2587269 .z 0 0.257142857 Arm_B&lt;BR /&gt;33.67556468 .z 0 0.257142857 Arm_B&lt;BR /&gt;33.93839836 0 1 .z Arm_B&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style styles.defstyle;&lt;BR /&gt;parent=styles.statistical;&lt;BR /&gt;class systemtitle /&lt;BR /&gt;backgroundcolor = transparent&lt;BR /&gt;fontfamily = "Arial"&lt;BR /&gt;;&lt;BR /&gt;class systemfooter /&lt;BR /&gt;backgroundcolor = transparent&lt;BR /&gt;fontfamily = "Arial"&lt;BR /&gt;;&lt;BR /&gt;class GraphDataDefault /LineThickness = 2px;&lt;BR /&gt;class GraphData1 /&lt;BR /&gt;contrastcolor=blue linestyle=2 LineThickness = 4px;&lt;BR /&gt;class GraphData2 /&lt;BR /&gt;contrastcolor=Red linestyle=1 LineThickness = 2px;&lt;/P&gt;&lt;P&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ods rtf file='S1_ST.rtf' style=defstyle;&lt;BR /&gt;goptions reset=goptions device=png;&lt;BR /&gt;ods graphics on / reset ;&lt;BR /&gt;proc sgplot data=plot description="";&lt;BR /&gt;step x=time y=survival / group=stratum name='s';&lt;BR /&gt;scatter x=time y=censored / markerattrs=(symbol=plus) name='c';&lt;BR /&gt;scatter x=time y=censored / markerattrs=(symbol=plus) GROUP=stratum;&lt;BR /&gt;keylegend 's'/ location=inside position=right;&lt;BR /&gt;yaxis min=0 label = 'Rate' LABELPOS=top;&lt;BR /&gt;xaxis label = 'Months' LABELPOS=right VALUES=(0 to 66 by 6);&lt;BR /&gt;inset 'Whisker: Censored'/ position = TOPRIGHT LABELALIGN=left;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;BR /&gt;ods rtf close;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17536iE6E7167F2FEE4319/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.png" alt="graph.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 03:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423673#M14610</guid>
      <dc:creator>TristanTang</dc:creator>
      <dc:date>2017-12-27T03:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to thicken a dash line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423678#M14611</link>
      <description>&lt;P&gt;Funny thing, you can get a png image with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing gpath="&amp;amp;sasforum\graphs" style=defstyle;
ods graphics on / reset=index imagename="S1_ST";
proc sgplot data=plot description="";
step x=time y=survival / group=stratum name='s';
scatter x=time y=censored / markerattrs=(symbol=plus) name='c';
scatter x=time y=censored / markerattrs=(symbol=plus) GROUP=stratum;
keylegend 's'/ location=inside position=right;
yaxis min=0 label = 'Rate' LABELPOS=top;
xaxis label = 'Months' LABELPOS=right VALUES=(0 to 66 by 6);
inset 'Whisker: Censored'/ position = TOPRIGHT LABELALIGN=left;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and import it to a rtf file just fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 04:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423678#M14611</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-12-27T04:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to thicken a dash line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423680#M14612</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your reply.&lt;/P&gt;&lt;P&gt;my question is, i have two line on the graph. Blue line (&lt;SPAN&gt;linestyle=2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LineThickness = 4px&lt;/SPAN&gt;) is set thicker than red one (&lt;SPAN&gt;linestyle=1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LineThickness = 2px&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;But in the output, the thickness setting&amp;nbsp; seems only effective on the red line (solid line). i would like to know how can i change the thickness for a dash line.&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;&lt;SPAN&gt;class GraphData1 /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;contrastcolor=blue linestyle=2 LineThickness = 4px;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class GraphData2 /&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contrastcolor=Red linestyle=1 LineThickness = 2px;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 04:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423680#M14612</guid>
      <dc:creator>TristanTang</dc:creator>
      <dc:date>2017-12-27T04:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to thicken a dash line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423724#M14614</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183997"&gt;@TristanTang&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is maybe some limitation with the graphic device you're using.&lt;/P&gt;
&lt;P&gt;You may want to follow-up with Technical Support as I can reproduce the behavior with SAS9.4 TS1M5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, one possible workaround could be to add the &lt;STRONG&gt;&lt;EM&gt;DATASKIN&lt;/EM&gt; &lt;/STRONG&gt;option to your &lt;STRONG&gt;&lt;EM&gt;STEP&lt;/EM&gt; &lt;/STRONG&gt;statement, cf the &lt;A href="http://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0t1wmeqmh5d16n10uui6uatm1dh.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=fr#n14kr95kkmeuh0n1hbaha6dpxa24p" target="_self"&gt;SGPLOT Procedure&lt;/A&gt;&amp;nbsp;documentation.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;step x=time y=survival / group=stratum name='s' dataskin=crisp;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 14:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/423724#M14614</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2017-12-27T14:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to thicken a dash line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/424206#M14641</link>
      <description>&lt;P&gt;The default output format for RTF is EMF-Plus.&amp;nbsp; This does not support thick lines with patterns.&amp;nbsp; As suggested by others in this thread, use a high dpi PNG output format by setting the OUTPUTFMT and IMAGE_DPI options.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 09:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/424206#M14641</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-01-01T09:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to thicken a dash line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/424238#M14643</link>
      <description>&lt;P&gt;Although i still can't adjust the thickness directly output to RTF. The option of dataskin=crisp gives an acceptable solution.&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 01:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-thicken-a-dash-line/m-p/424238#M14643</guid>
      <dc:creator>TristanTang</dc:creator>
      <dc:date>2018-01-02T01:45:02Z</dc:date>
    </item>
  </channel>
</rss>

