<?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: PROC SGPLOT and ODS PDF errors with extremely large values in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888690#M24037</link>
    <description>&lt;P&gt;If you are willing to accept different XAXIS labels this seems to "work"&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=dummy ;
   where y&amp;lt;10000;
	series x=i y=y / markers;
	yaxis min=0 max=100  ;
   xaxis values=(0 to 15 by 1);
run;
&lt;/PRE&gt;
&lt;P&gt;But this approach may not work with your "real" data assuming this is a simplification of something else. I might ask why the extremely small limit on the min/max range given the range of the actual Y values.&lt;/P&gt;
&lt;P&gt;If you only have a single or small number of values outside the range you want to display perhaps min and max filter correctly. But if most of the actual values are that large perhaps you want to look at a Type=LOG scale for the Y axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443054"&gt;@AndrewB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm having trouble graphing data with extremely large values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example that reproduces the problem:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;data dummy;
	do i = 1 to 15;
		y = 10**i;
		output;
	end;
run;

ods pdf file="problem.pdf";
proc sgplot data=dummy;
	series x=i y=y / markers;
	yaxis min=0 max=100;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything looks as expected in results viewer: I see the first two points and the rest is blank.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the PDF does not look the same. Here is a screenshot of the graph:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86588i44620C4E07AA83B4/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 3 vertical lines on the right that should not be there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's strange is that when I zoom out (e.g. yaxis min=0 max=100000), the location and number of these lines change. And if I do not restrict the zoom at all, they disappear.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the large numbers are somehow interacting with the upper yaxis max value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas how I can get the pdf output to match the desired output in the results viewer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System Info: SAS 9.4 TS Level 1M7 on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 22:48:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-08-09T22:48:38Z</dc:date>
    <item>
      <title>PROC SGPLOT and ODS PDF errors with extremely large values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888679#M24036</link>
      <description>&lt;P&gt;I'm having trouble graphing data with extremely large values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example that reproduces the problem:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data dummy;
	do i = 1 to 15;
		y = 10**i;
		output;
	end;
run;

ods pdf file="problem.pdf";
proc sgplot data=dummy;
	series x=i y=y / markers;
	yaxis min=0 max=100;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything looks as expected in results viewer: I see the first two points and the rest is blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the PDF does not look the same. Here is a screenshot of the graph:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86588i44620C4E07AA83B4/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 3 vertical lines on the right that should not be there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's strange is that when I zoom out (e.g. yaxis min=0 max=100000), the location and number of these lines change. And if I do not restrict the zoom at all, they disappear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the large numbers are somehow interacting with the upper yaxis max value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how I can get the pdf output to match the desired output in the results viewer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System Info: SAS 9.4 TS Level 1M7 on Windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 20:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888679#M24036</guid>
      <dc:creator>AndrewB</dc:creator>
      <dc:date>2023-08-09T20:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT and ODS PDF errors with extremely large values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888690#M24037</link>
      <description>&lt;P&gt;If you are willing to accept different XAXIS labels this seems to "work"&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=dummy ;
   where y&amp;lt;10000;
	series x=i y=y / markers;
	yaxis min=0 max=100  ;
   xaxis values=(0 to 15 by 1);
run;
&lt;/PRE&gt;
&lt;P&gt;But this approach may not work with your "real" data assuming this is a simplification of something else. I might ask why the extremely small limit on the min/max range given the range of the actual Y values.&lt;/P&gt;
&lt;P&gt;If you only have a single or small number of values outside the range you want to display perhaps min and max filter correctly. But if most of the actual values are that large perhaps you want to look at a Type=LOG scale for the Y axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443054"&gt;@AndrewB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm having trouble graphing data with extremely large values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example that reproduces the problem:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;data dummy;
	do i = 1 to 15;
		y = 10**i;
		output;
	end;
run;

ods pdf file="problem.pdf";
proc sgplot data=dummy;
	series x=i y=y / markers;
	yaxis min=0 max=100;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything looks as expected in results viewer: I see the first two points and the rest is blank.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the PDF does not look the same. Here is a screenshot of the graph:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86588i44620C4E07AA83B4/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 3 vertical lines on the right that should not be there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's strange is that when I zoom out (e.g. yaxis min=0 max=100000), the location and number of these lines change. And if I do not restrict the zoom at all, they disappear.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the large numbers are somehow interacting with the upper yaxis max value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas how I can get the pdf output to match the desired output in the results viewer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System Info: SAS 9.4 TS Level 1M7 on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 22:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888690#M24037</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-09T22:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT and ODS PDF errors with extremely large values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888691#M24038</link>
      <description>&lt;P&gt;This issue seems to be addressed in SAS 9.4 TS level M8. As a workaround, you might be able to filter out the extreme values using a WHERE clause on the SGPLOT procedure.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 22:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888691#M24038</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-08-09T22:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT and ODS PDF errors with extremely large values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888703#M24039</link>
      <description>Thanks -- unfortunately the x-axis trick didn't work on my real data. As for the motivation for the tight zoom of these graphs, their purpose is to look at the "usual" pattern of simulation replicates, but a few replicates do not converge and go off to infinity. I want that to be shown as the line exiting the graph (like the only line in my example), but I am not interested in its behavior after it has blown up.</description>
      <pubDate>Thu, 10 Aug 2023 00:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-and-ODS-PDF-errors-with-extremely-large-values/m-p/888703#M24039</guid>
      <dc:creator>AndrewB</dc:creator>
      <dc:date>2023-08-10T00:04:24Z</dc:date>
    </item>
  </channel>
</rss>

