<?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: Controlling axis offset in SG plots in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20458#M498</link>
    <description>I'm running the code at 9.2 (TS2M2), on Windows, and it's running successfully for me there.  When it comes to the "ODS Graphics" and "SG" stuff, I'd recommend having the latest SAS release.&lt;BR /&gt;
&lt;BR /&gt;
Perhaps Dan can provide some more insight into whether this should work in the slightly older version you're using(?)</description>
    <pubDate>Thu, 25 Feb 2010 16:03:09 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2010-02-25T16:03:09Z</dc:date>
    <item>
      <title>Controlling axis offset in SG plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20456#M496</link>
      <description>Sunil asked ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Hello et al.,&lt;BR /&gt;
&lt;BR /&gt;
I want to adjust XAXIS offset in PROC SGSCATTER how to do this? &lt;BR /&gt;
&lt;BR /&gt;
Example, in AXIS statement we have option OFFSET=(x,y)unit. Here we can adjust, the same way how can i do this in PROC SGSCATTER.&lt;BR /&gt;
This is my sample code &lt;BR /&gt;
&lt;BR /&gt;
ods listing close; &lt;BR /&gt;
goptions reset=goptions device=png target=png; &lt;BR /&gt;
ods rtf file='Scatterplot.rtf'; &lt;BR /&gt;
ods graphics / reset width=600px height=400px imagename='ScatterPlot' imagefmt=gif; &lt;BR /&gt;
title "Height vs Weight Statistics"; &lt;BR /&gt;
proc sgscatter data=sashelp.class; &lt;BR /&gt;
plot weight * height / &lt;BR /&gt;
group=sex; &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
ods rtf close; &lt;BR /&gt;
ods listing; &lt;BR /&gt;
&lt;BR /&gt;
appreciate your suggestions.&lt;BR /&gt;
&lt;BR /&gt;
warm regards,&lt;BR /&gt;
Suniel &lt;BR /&gt;
&lt;BR /&gt;
-----&lt;BR /&gt;
&lt;BR /&gt;
DanH provided the tip:&lt;BR /&gt;
&lt;BR /&gt;
You can set the axis offset in SGPLOT.&lt;BR /&gt;
&lt;BR /&gt;
-----&lt;BR /&gt;
&lt;BR /&gt;
And I thought I'd provide a simple example showing the syntax:&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=sashelp.iris;&lt;BR /&gt;
 scatter x=petallength y=petalwidth / group=species;&lt;BR /&gt;
 yaxis label="Petal Width"  grid values=(0 to 30 by 10) offsetmin=0 offsetmax=0;&lt;BR /&gt;
 xaxis label="Petal Length" grid values=(0 to 80 by 20) offsetmin=0 offsetmax=0;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And, just to be complete, here's a gchart example showing how to control the axis offset there...&lt;BR /&gt;
&lt;BR /&gt;
 axis1 label=(angle=90 "Petal Width") order=(0 to 30 by 10) minor=none offset=(0,0);&lt;BR /&gt;
 axis2 label=("Petal Length") order=(0 to 80 by 20) minor=none offset=(0,0);&lt;BR /&gt;
 proc gplot data=sashelp.iris;&lt;BR /&gt;
  plot petalwidth*petallength=species /&lt;BR /&gt;
  vaxis=axis1&lt;BR /&gt;
  haxis=axis2&lt;BR /&gt;
  autovref cvref=graydd&lt;BR /&gt;
  autohref chref=graydd;&lt;BR /&gt;
 run;</description>
      <pubDate>Fri, 20 Nov 2009 18:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20456#M496</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-11-20T18:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling axis offset in SG plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20457#M497</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I tried to tun the sample code of the Iris data, but got the error message as below:&lt;BR /&gt;
&lt;BR /&gt;
"&lt;BR /&gt;
Error 22-322: Syntax error, expeting one of the following: ;, DISCRETEORDER, DISPLAY, FITPOLICY, GRID, INTEGER, LABEL, LOGBASE, LOGSTYLE, MAX, MIN, MINOR, NOTIMESPLIT, REFTICKS, TYPE, VALUES, VALUESHINT.&lt;BR /&gt;
&lt;BR /&gt;
Error 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;
"&lt;BR /&gt;
&lt;BR /&gt;
I have the same problem when I was running the other code in PROG SGPLOT when I was trying to adjust the offset, so I guess something is going wrong with the offsetmin= or offsetmax= options. Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
I am running SAS 9.2 TS Level 1M0 on 32 bit Win Xp platform. Thanks!</description>
      <pubDate>Thu, 25 Feb 2010 15:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20457#M497</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-25T15:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling axis offset in SG plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20458#M498</link>
      <description>I'm running the code at 9.2 (TS2M2), on Windows, and it's running successfully for me there.  When it comes to the "ODS Graphics" and "SG" stuff, I'd recommend having the latest SAS release.&lt;BR /&gt;
&lt;BR /&gt;
Perhaps Dan can provide some more insight into whether this should work in the slightly older version you're using(?)</description>
      <pubDate>Thu, 25 Feb 2010 16:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20458#M498</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-02-25T16:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling axis offset in SG plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20459#M499</link>
      <description>I found the below from the online manual regarding offsetmin= / offsetmax= in SGPLOT:&lt;BR /&gt;
&lt;BR /&gt;
Restriction: This option is available with SAS 9.2 Phase 2 and later&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
So, I guess I'm running on Phase 1 product (1M0)? &lt;BR /&gt;
&lt;BR /&gt;
Dan, any hints how can I upgrade to Phase 2? Thanks!</description>
      <pubDate>Thu, 25 Feb 2010 16:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20459#M499</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-25T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling axis offset in SG plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20460#M500</link>
      <description>Hi:&lt;BR /&gt;
  This note explains the process:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/35/445.html" target="_blank"&gt;http://support.sas.com/kb/35/445.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 25 Feb 2010 16:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20460#M500</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-02-25T16:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling axis offset in SG plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20461#M501</link>
      <description>Note that that doc tells you how to get "Phase 2" (TS2), but while you're at it, I would recommend also getting the "Maintenance 2" (M2) for Phase 2.  ... &lt;BR /&gt;
&lt;BR /&gt;
9.2 (TS2M2)</description>
      <pubDate>Thu, 25 Feb 2010 16:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20461#M501</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-02-25T16:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling axis offset in SG plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20462#M502</link>
      <description>Thanks for suggestions.&lt;BR /&gt;
&lt;BR /&gt;
So you mean the M2 is applied after the Phase 2 upgrade, right? I am a bit confused with all these upgrade, do you know where can I find the differences among all these versions (TS1M0, TS2M0, TS2M2 ..) Thanks!</description>
      <pubDate>Thu, 25 Feb 2010 17:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-axis-offset-in-SG-plots/m-p/20462#M502</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-25T17:23:14Z</dc:date>
    </item>
  </channel>
</rss>

