<?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: SGPLOT:  Legend is unreadable. I think it's trying to write out every x-axis value in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Legend-is-unreadable-I-think-it-s-trying-to-write-out/m-p/698190#M20717</link>
    <description>&lt;P&gt;One clarification on the terminology - I think you mean the X-axis, rather than the Legend(?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I don't have your data, I can't say for certain - but I suspect that the value you're plotting on the x-axis is character, rather than a numeric/datetime value. Convert those character values to numeric/datetime values, and then SAS won't feel compelled to show every x-value on the axis. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 17:30:20 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2020-11-11T17:30:20Z</dc:date>
    <item>
      <title>SGPLOT:  Legend is unreadable. I think it's trying to write out every x-axis value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Legend-is-unreadable-I-think-it-s-trying-to-write-out/m-p/695364#M20643</link>
      <description>&lt;P&gt;SS V9.4 on Windows Server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data includes a date/time field (CurrentTime) and an interval of time in minutes (CTDelta_Time_In_Minutes). The SGPLOT should have the CurrentTime value on the x-axis and the CTDelta_Time_In_Minutes on the y-axis....and it doesn't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CurrentTime value is date/time including seconds. There may be as many as 12 records for every hour. The input dataset could contain weeks, maybe even months, of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is the legend is unintelligible. I think it's trying to list every value on the chart and that could be thousands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like is to have something like every hour as a marker. Can you offer advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS code is attached. Also a PDF of the plot is attached as a PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;filename URMETRCS 'z:\Mainframe\lchristensen\URMETRCS\URMETRCS_RPT.csv';&lt;BR /&gt;title;&lt;BR /&gt;proc import datafile="URMETRCS" out=Work.Report_CSV dbms=csv;&lt;BR /&gt;run;&lt;BR /&gt;Data Work.URMETRCS_EVENTLOG Work.CTDelta_Time;&lt;BR /&gt;infile URMETRCS end=eof length=reclen missover;&lt;BR /&gt;data Work.Read_CSV;&lt;BR /&gt;set Work.Report_CSV;&lt;BR /&gt;format CTDelta_Minutes 6.0;&lt;BR /&gt;CTDelta_Minutes = (CTDelta_Secs / 60); /* convert CTDelta_Secs to minutes */&lt;BR /&gt;run;&lt;BR /&gt;proc print data=Work.Read_CSV noobs uniform;&lt;BR /&gt;title "Word.Read_CSV";&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=Work.Read_CSV nodupkey;&lt;BR /&gt;by CurrentTime;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf;&lt;BR /&gt;proc sgplot data=Work.Read_CSV; /* graph with date/time on bottom and CTDelta_Time on y axis */&lt;BR /&gt;series x = CurrentTime y = CTDelta_Minutes ;&lt;BR /&gt;/* xaxis type = discrete; */&lt;BR /&gt;title1 "Hitachi Mainframe Replication Extenstion";&lt;BR /&gt;title2 "CTDelta Time in Minutes by Date/Time";&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 21:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Legend-is-unreadable-I-think-it-s-trying-to-write-out/m-p/695364#M20643</guid>
      <dc:creator>lchristensen</dc:creator>
      <dc:date>2020-10-29T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT:  Legend is unreadable. I think it's trying to write out every x-axis value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Legend-is-unreadable-I-think-it-s-trying-to-write-out/m-p/695366#M20644</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/119027"&gt;@lchristensen&lt;/a&gt;&amp;nbsp;, can you use the XAXIS option fitpolicy = thin, to only show some tick values? Alternatively can you use the VALUES option to only select some time values to display?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kriss&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 21:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Legend-is-unreadable-I-think-it-s-trying-to-write-out/m-p/695366#M20644</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2020-10-29T21:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT:  Legend is unreadable. I think it's trying to write out every x-axis value</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Legend-is-unreadable-I-think-it-s-trying-to-write-out/m-p/698190#M20717</link>
      <description>&lt;P&gt;One clarification on the terminology - I think you mean the X-axis, rather than the Legend(?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I don't have your data, I can't say for certain - but I suspect that the value you're plotting on the x-axis is character, rather than a numeric/datetime value. Convert those character values to numeric/datetime values, and then SAS won't feel compelled to show every x-value on the axis. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 17:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Legend-is-unreadable-I-think-it-s-trying-to-write-out/m-p/698190#M20717</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-11-11T17:30:20Z</dc:date>
    </item>
  </channel>
</rss>

