<?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: Another bug with SGPLOT: UNIFORM=ALL does  make X axes uniform? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/585068#M18799</link>
    <description>&lt;P&gt;There is an issue in the proc, but I'm going to give you a simple fix. Add this line to your SGPLOT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xaxis type=linear;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 19:56:03 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-08-29T19:56:03Z</dc:date>
    <item>
      <title>Another bug with SGPLOT: UNIFORM=ALL does  make X axes uniform?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/584823#M18793</link>
      <description>&lt;P&gt;I want to make two graphs via by-processing with the same scaling of X and Y axes. SGPLOT resolutely refuses to make uniform scaling of the X axes with UNIFORM=ALL, UNIFORM=SCALE and UNIFORM=XSCALE. The Y axes are made uniform, however.&amp;nbsp; Here's the code, and attached is the output. Sorry I can't easily include the dataset. In any case, it's probably something arcane to do with the attributes or something that I have got wrong. (BTW, I used log transformation and back-transformed, in case anyone picks up on the non-uniformity.) And can anyone see why I don't get red outlines on the markers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&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;title height=1.0 "&amp;amp;pred predicting &amp;amp;dep, Name means and between-Name quadratic";
ods graphics / reset width=16cm height=13cm imagemap attrpriority=none;
proc sgplot data=bothpred1 noborder noautolegend uniform=ALL;
reg x=Mean&amp;amp;pred.Unscaled y=PredM/degree=2 nomarkers lineattrs=(thickness=1 color=blue pattern=solid);
reg x=Mean&amp;amp;pred.Unscaled y=LowerM/degree=2 nomarkers lineattrs=(thickness=1 color=blue pattern=dot);
reg x=Mean&amp;amp;pred.Unscaled y=UpperM/degree=2 nomarkers lineattrs=(thickness=1 color=blue pattern=dot);
scatter x=Mean&amp;amp;pred.Unscaled y=Mean&amp;amp;dep/filledoutlinedmarkers
  markerattrs=(symbol=circlefilled size=10 color=red)
  markerfillattrs=(color=black);
yaxis label="Mean&amp;amp;dep" labelpos=top labelattrs=(size=10) valueattrs=(size=10);
by PosGrp;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 01:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/584823#M18793</guid>
      <dc:creator>WillTheKiwi</dc:creator>
      <dc:date>2019-08-29T01:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Another bug with SGPLOT: UNIFORM=ALL does  make X axes uniform?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/584911#M18794</link>
      <description>&lt;P&gt;Two ways to accomplish what you want.&lt;/P&gt;
&lt;P&gt;1. &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0zgx9a7en0g5vn1tjpja6sxdiwr.htm&amp;amp;locale=en" target="_self"&gt;Use PROC SGPANEL&lt;/A&gt;. The PANELBY statement produces different plots for each level of a grouping variable, but you can use the UNISCALE= option to equate the ranges of the X axis, Y axis, or both.&lt;/P&gt;
&lt;P&gt;2. Use PROC MEANS to get the min and max value of the data across all levels of the BY-group variable. Use those values in your current code as arguments to the MIN= and MAX= options on the XAXIS statement.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/584911#M18794</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-29T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Another bug with SGPLOT: UNIFORM=ALL does  make X axes uniform?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/584937#M18795</link>
      <description>&lt;P&gt;You could use SAS/Graph Proc Gplot - its 'uniform' option keeps both the x and y axes uniform, across by groups.&lt;/P&gt;
&lt;P&gt;Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=mapsgfk.uscity out=my_data;&lt;BR /&gt;by statecode;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc gplot data=my_data &lt;STRONG&gt;uniform&lt;/STRONG&gt;;&lt;BR /&gt;by statecode;&lt;BR /&gt;plot lat*long;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/584937#M18795</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-08-29T14:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Another bug with SGPLOT: UNIFORM=ALL does  make X axes uniform?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/585065#M18797</link>
      <description>Thanks, Rick, but according to the documentation for SGPLOT, I should get uniform X axes:&lt;BR /&gt;&lt;BR /&gt;ALL specifies that both the legend group values and the axis scaling are shared between all of the levels of the BY variable or variables.&lt;BR /&gt;&lt;BR /&gt;I don't want to use a different plotting procedure, having spent hours-no, days, if you add it all up-getting just a rudimentary knowledge of how to get what I want out of SGPLOT.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Aug 2019 19:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/585065#M18797</guid>
      <dc:creator>WillTheKiwi</dc:creator>
      <dc:date>2019-08-29T19:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Another bug with SGPLOT: UNIFORM=ALL does  make X axes uniform?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/585067#M18798</link>
      <description>Thanks, Robert. As I said to Rick, I don't particularly want to switch plotting procedures, having put in a lot of time to get the code right for SGPLOT.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Aug 2019 19:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/585067#M18798</guid>
      <dc:creator>WillTheKiwi</dc:creator>
      <dc:date>2019-08-29T19:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Another bug with SGPLOT: UNIFORM=ALL does  make X axes uniform?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/585068#M18799</link>
      <description>&lt;P&gt;There is an issue in the proc, but I'm going to give you a simple fix. Add this line to your SGPLOT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xaxis type=linear;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 19:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-bug-with-SGPLOT-UNIFORM-ALL-does-make-X-axes-uniform/m-p/585068#M18799</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-08-29T19:56:03Z</dc:date>
    </item>
  </channel>
</rss>

