<?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: order= control the scaling of axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216441#M8064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And why the OVERLAY option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 15:37:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-08-04T15:37:38Z</dc:date>
    <item>
      <title>order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216438#M8061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;i created graphs, by gplot. i want to change scaling for every graph(i create graph for every &lt;SPAN style="font-size: 13.3333330154419px;"&gt;security - see by)&lt;/SPAN&gt; , how can i drp it?&lt;/P&gt;&lt;P&gt;i.e for every security i have different scale, i want to use scaling inside dataset and to use in the order statement. can i?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example : &lt;/P&gt;&lt;P&gt;axis1 label=none minor=none offset=(0,0);&lt;/P&gt;&lt;P&gt;axis2&lt;SPAN style="font-size: 13.3333330154419px;"&gt; label=none minor=none offset=(0,0)&lt;STRONG&gt; order=(100 to 150 by 5);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=test;&lt;/P&gt;&lt;P&gt;plot price*time=1 / overlay vaxis=axis1 haxis=axes2 noframe;&lt;/P&gt;&lt;P&gt;by security;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 10:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216438#M8061</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2015-08-04T10:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216439#M8062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And You are not satisfied with gplots autoscaling in case you omit either vaxis haxis or both&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 11:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216439#M8062</guid>
      <dc:creator>jkanters</dc:creator>
      <dc:date>2015-08-04T11:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216440#M8063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simple answer is to move your code to use Graph Template Language.&amp;nbsp; Then is really simple:&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamic _low _high _by;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph /;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay / xaxisopts=(viewmin=_low viewmax=_high);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sgrender ...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamic _low=100 _high=150 _by=5;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you can do it by generating the code (however do consider moving to the newer technology):&lt;/P&gt;&lt;P&gt;data ranges;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low=100; high=150; b=5; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low=200; high=300; b=10; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set ranges;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute(cats('axis2 order=(',put(low,best.),' to ',put(high,best.),' by ',put(b,best.),';'));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 12:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216440#M8063</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-04T12:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216441#M8064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And why the OVERLAY option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216441#M8064</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-04T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216442#M8065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that's to me?&amp;nbsp; It doesn't matter, I just pulled that code from a program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 17:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216442#M8065</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-04T17:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216443#M8066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the question is for the OP.&lt;/P&gt;&lt;P&gt;Sort of wondering when that appears if maybe what was actually wanted was a&lt;/P&gt;&lt;P&gt;plot price*time=security&lt;/P&gt;&lt;P&gt;as attempting to overlay multiple graphs with the same marker/line seems odd. IF that was the intent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 17:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216443#M8066</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-04T17:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216444#M8067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, unfortunately not, i want to see behavior of price in the specific interval&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 04:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216444#M8067</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2015-08-05T04:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216445#M8068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;because i have another one graph on the same graph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 04:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216445#M8068</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2015-08-05T04:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216446#M8069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i didn't know &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Graph Template Language, but the second option is interesting, can you explain me in more details please. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 04:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216446#M8069</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2015-08-05T04:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216447#M8070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i will explain what i want to do.&lt;/P&gt;&lt;P&gt;i have a list of securities price and time of transaction. i want to create graph per every security and date, axe x= time axe y =price&lt;/P&gt;&lt;P&gt;i have a lot of securities, for exeery security i want to define the scale of axe y. how can i do it.&lt;/P&gt;&lt;P&gt;i know that using order=() i need put there values, and it is not rellevant in this case.&lt;/P&gt;&lt;P&gt;what can i do?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 04:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216447#M8070</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2015-08-05T04:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: order= control the scaling of axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216448#M8071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Graph template language is the latest graphing technology.&amp;nbsp; Been around since 9.x, the newer graphing plots - sgplot for instance, create GTL behined the scenes.&amp;nbsp; It is far more powerful, easier to understand than the old graphing system.&amp;nbsp; Have a look at Sanjay's excellent blog where you will find examples of pretty much anything you can think of: &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" title="http://blogs.sas.com/content/graphicallyspeaking/"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for my second options, what I am doing is generating the code.&amp;nbsp; The call execute function takes a string, and sends that string to the compiler as if it was normal code.&amp;nbsp; Thus any string of code you can create can be executed.&amp;nbsp; Say for instance, I want to print two datasets, I could do this as:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do i=dataset1,dataset2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute(cats('proc print data=',i,'; run;'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create two strings and send them to the compiler as:&lt;/P&gt;&lt;P&gt;proc print data=dataset1; run;&lt;/P&gt;&lt;P&gt;proc print data=dataset2; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from the axis example, the dataset ranges has two rows, in the first row of data an axis statement is generated with the data from that row and sent to the compiler, then the next row.&amp;nbsp; In that instance only the second row really takes any effect, but if you put the graph statement in the call execute, then the gpplot would also be called, so you get two sets of code, one for each of the ranges.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 12:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/order-control-the-scaling-of-axis/m-p/216448#M8071</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-05T12:22:58Z</dc:date>
    </item>
  </channel>
</rss>

