<?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: Specifying Order From 0 to -2 on Y Axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412366#M14138</link>
    <description>&lt;P&gt;I ended up following Reeza's advice (about how SGPLOT is easier and more flexible) from a few days ago, and doing this plot with SGPLOT rather than GPLOT.&amp;nbsp; For some reason the XAXIS and YAXIS statements, where I specified the scaling, are much more responsive and easier to use than what I was trying to do for GPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Reeza.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = prep2;
   where trtn = 1;     
   styleattrs datacontrastcolors=(red);
   series x=session y=thresh / group=usubjid grouplc=trt name='grouping' lineattrs=(pattern=solid);
   keylegend 'grouping' / type = marker;
   xaxis values = (1 to 10 by 1); 
   yaxis values= (0 to -2 by -.2);
   title1 h=8pt color=black font='courier' J=L "&amp;amp;titlel1";
   title2 h=8pt color=black font='courier' J=L "Protocol: &amp;amp;titlel2 													Page 1 of 2";
   title5 h=8pt color=black font='courier' J=C "&amp;amp;titlel5";
   title6 h=8pt color=black font='courier' J=C "&amp;amp;titlel6";
   title7 h=8pt color=black font='courier' J=C "Placebo &amp;amp;titlel7";
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Nov 2017 14:58:40 GMT</pubDate>
    <dc:creator>davehalltwp</dc:creator>
    <dc:date>2017-11-10T14:58:40Z</dc:date>
    <item>
      <title>Specifying Order From 0 to -2 on Y Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412177#M14129</link>
      <description>&lt;P&gt;I'm trying to specify values for the y axis from 0 at the top to -2 where it meets the x axis.&amp;nbsp; I can't seem to please Mr. SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;axis1 label=(a=90 h=12pt 'Threshold (log10 sec)')                                                                                                        
      order=(0 to -2 by 0.2) /*(-2 to 0.0 by 0.2)*/;                                                                                                        
 axis2 label=(h=12pt 'Session') order=(1 to 10 by 1) minor=none; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I get this in the log:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  
23         GOPTIONS ACCESSIBLE;
24         axis1 label=(a=90 h=12pt 'Threshold (log10 sec)')
25               order=(0 to -2 by 0.2) /*(-2 to 0.0 by 0.2)*/;
WARNING: Order= clause on the axis statement is not valid. The default axis values will be used.
26          axis2 label=(h=12pt 'Session') order=(1 to 10 by 1) minor=none;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I do this, the log is clean but instead of printing '0' at the top, it prints "-2..7756E-16" in place of the "0" (all the other numbers on the scale appear as I want them).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;axis1 label=(a=90 h=12pt 'Threshold (log10 sec)')                                                                                                        
      order=/*(0 to -2 by 0.2)*/ (-2 to 0.0 by 0.2);                                                                                                        
 axis2 label=(h=12pt 'Session') order=(1 to 10 by 1) minor=none; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what's the secret?&amp;nbsp; I simply want this along my Y axis:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-1.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(all the way to -2.0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 23:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412177#M14129</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2017-11-09T23:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Order From 0 to -2 on Y Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412178#M14130</link>
      <description>&lt;P&gt;I don't know how the other options you have might affect it, but at a very basic level you're using the right syntax. Try eliminating all but the order to get it to work and then add them back in to see what's breaking it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plot_data;
    do y = -2 to 1 by .2;
       x = ranuni(4);
       output;
    end;
run;

axis1 order = (-2 to 0 by .2);

proc gplot data = plot_data;
    plot y * x / vaxis = axis1;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Nov 2017 23:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412178#M14130</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-11-09T23:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Order From 0 to -2 on Y Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412180#M14131</link>
      <description>&lt;P&gt;Well, 0 to -2 by 0.2 isn't possible so that's a perfectly valid error, it would need to be by -0.2 (positive versus negative).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's not displaying have you applied a format? Or tried a Values instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 23:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412180#M14131</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-09T23:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Order From 0 to -2 on Y Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412366#M14138</link>
      <description>&lt;P&gt;I ended up following Reeza's advice (about how SGPLOT is easier and more flexible) from a few days ago, and doing this plot with SGPLOT rather than GPLOT.&amp;nbsp; For some reason the XAXIS and YAXIS statements, where I specified the scaling, are much more responsive and easier to use than what I was trying to do for GPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Reeza.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = prep2;
   where trtn = 1;     
   styleattrs datacontrastcolors=(red);
   series x=session y=thresh / group=usubjid grouplc=trt name='grouping' lineattrs=(pattern=solid);
   keylegend 'grouping' / type = marker;
   xaxis values = (1 to 10 by 1); 
   yaxis values= (0 to -2 by -.2);
   title1 h=8pt color=black font='courier' J=L "&amp;amp;titlel1";
   title2 h=8pt color=black font='courier' J=L "Protocol: &amp;amp;titlel2 													Page 1 of 2";
   title5 h=8pt color=black font='courier' J=C "&amp;amp;titlel5";
   title6 h=8pt color=black font='courier' J=C "&amp;amp;titlel6";
   title7 h=8pt color=black font='courier' J=C "Placebo &amp;amp;titlel7";
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Nov 2017 14:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specifying-Order-From-0-to-2-on-Y-Axis/m-p/412366#M14138</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2017-11-10T14:58:40Z</dc:date>
    </item>
  </channel>
</rss>

