<?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: SAS/Graph error message in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506063#M17247</link>
    <description>I think that I only added the colors=black when I kept getting that error message to see if I could prevent it from trying to use that invalid color. However, rather than trusting my memory I reset the device drive to TIFFB and removed all of the color statements from my code. I still get the error message.</description>
    <pubDate>Fri, 19 Oct 2018 17:19:13 GMT</pubDate>
    <dc:creator>dleduc</dc:creator>
    <dc:date>2018-10-19T17:19:13Z</dc:date>
    <item>
      <title>SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/505967#M17235</link>
      <description>&lt;P&gt;Lately all of my PROC GPLOT logs have contained the error message&lt;/P&gt;&lt;P&gt;"Undefinable color CX000000CXFF0000 mapped to GRAY"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not defined any colors and, in fact, whenever I could specify a color it has been black.&amp;nbsp; I can see that&amp;nbsp;&lt;SPAN&gt;CX000000CXFF0000 is probably not a valid color definition, but I don't&amp;nbsp;know where it is coming from.&amp;nbsp; I've attached my code and the log file that comes from it (renamed to figure7.txt)&amp;nbsp; I've also attached my autoexec.sas file to show that I haven't really done anything to strange in it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using version 9.4 on a Windows 10 system&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/505967#M17235</guid>
      <dc:creator>dleduc</dc:creator>
      <dc:date>2018-10-19T15:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/505977#M17238</link>
      <description>&lt;P&gt;The color&amp;nbsp;&lt;SPAN&gt;CX000000CXFF0000 is really black (CX000000) and red (CXFF0000) jammed together. This issue has the feel of a macro concatenating colors into one string, but missing the space separator. However, I do not see this in your code. Since I cannot run your code, let's trying narrowing down the location of the colors be removing the annotations from your plots. Let us know if the color problem goes away.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;BR /&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/505977#M17238</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-10-19T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/505984#M17242</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241429"&gt;@dleduc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Lately all of my PROC GPLOT logs have contained the error message&lt;/P&gt;
&lt;P&gt;"Undefinable color CX000000CXFF0000 mapped to GRAY"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not defined any colors and, in fact, whenever I could specify a color it has been black.&amp;nbsp; I can see that&amp;nbsp;&lt;SPAN&gt;CX000000CXFF0000 is probably not a valid color definition, but I don't&amp;nbsp;know where it is coming from.&amp;nbsp; I've attached my code and the log file that comes from it (renamed to figure7.txt)&amp;nbsp; I've also attached my autoexec.sas file to show that I haven't really done anything to strange in it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using version 9.4 on a Windows 10 system&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you&amp;nbsp;tried resetting goptions to default? There are some things that persist from session to session and&lt;/P&gt;
&lt;P&gt;goptions reset=all;&lt;/P&gt;
&lt;P&gt;might clear an offending element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, which style do you have active? There may be some interaction with an element you are not defining explicitly getting a color setting that is off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might also be an indication of time to move on to PROC SGPLOT instead of GPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW your MYANNO macro really should include a RUN inside the macro definition.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/505984#M17242</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-19T15:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506037#M17243</link>
      <description>&lt;P&gt;In reference to DanH, I tried removing all traces of the annotate code and it did not help.&amp;nbsp; I then moved on to using the device TIFFP instead of&amp;nbsp;TIFFB and the problem went away.&amp;nbsp; I can probably live with this since I only specified black in the potential color palette, but a publisher might not like a color graphic format even if it is only black and white.&amp;nbsp; Do you know where this faulty color might be defined in the TIFFB driver?&amp;nbsp; The error message is gone, but this did not solve my real problem which was that my axes are still gray rather than black.&amp;nbsp; Do you have any thoughts on that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In reference to ballardw as far as I know my options are already reset&amp;nbsp; since I ran this job in batch mode.&amp;nbsp; That is why&amp;nbsp;I like batch mode because you do not have left over pieces of previous jobs.&amp;nbsp; I do not think that style applies to SAS/GRAPH.&amp;nbsp; Isn't that an ODS graphics option?&amp;nbsp; It does seem like I probably should move toward SGPLOT, but I've only seen some code samples that seem less flexible that what I can do in SAS/GRAPH even if that is not entirely true.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 16:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506037#M17243</guid>
      <dc:creator>dleduc</dc:creator>
      <dc:date>2018-10-19T16:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506046#M17244</link>
      <description>I checked further and my axes are not gray. They are just very thin black lines so they appear gray on my monitor.</description>
      <pubDate>Fri, 19 Oct 2018 16:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506046#M17244</guid>
      <dc:creator>dleduc</dc:creator>
      <dc:date>2018-10-19T16:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506049#M17245</link>
      <description>&lt;P&gt;Thank you for the information. The TIFFB driver has only one device foreground color define (Black), so you should just get black without the COLORS option. I'm curious to see if TIFFB would work if you ran without the COLORS option (in case there is some interaction).&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 17:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506049#M17245</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-10-19T17:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506060#M17246</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241429"&gt;@dleduc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In reference to DanH, I tried removing all traces of the annotate code and it did not help.&amp;nbsp; I then moved on to using the device TIFFP instead of&amp;nbsp;TIFFB and the problem went away.&amp;nbsp; I can probably live with this since I only specified black in the potential color palette, but a publisher might not like a color graphic format even if it is only black and white.&amp;nbsp; Do you know where this faulty color might be defined in the TIFFB driver?&amp;nbsp; The error message is gone, but this did not solve my real problem which was that my axes are still gray rather than black.&amp;nbsp; Do you have any thoughts on that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In reference to ballardw as far as I know my options are already reset&amp;nbsp; since I ran this job in batch mode.&amp;nbsp; That is why&amp;nbsp;I like batch mode because you do not have left over pieces of previous jobs.&amp;nbsp; I do not think that style applies to SAS/GRAPH.&amp;nbsp; Isn't that an ODS graphics option?&amp;nbsp; It does seem like I probably should move toward SGPLOT, but I've only seen some code samples that seem less flexible that what I can do in SAS/GRAPH even if that is not entirely true.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Change ods styles on a graphics program and see. Results sent to listing and ODS can vary quite notably for anything not specifically set in your program. You don't control device graphics options generally but a few elements can be set by them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The features I used with GPLOT that I am not quite happy yet with SGPLOT are the axis controls but they have been getting better with each release of SAS. The ability to overlay multiple different graph types is one big advantage. And once you discover DATTRMAP for consistent appearance of values across graph procedures (District&amp;nbsp;Five everything is always blue/star/dot-dash line/ etc. and doesn't change just because District Four didn't appear on that graph)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And check out some of the examples from &lt;A href="http://support.sas.com/sassamples/graphgallery/PROC_SGRENDER.html" target="_blank"&gt;http://support.sas.com/sassamples/graphgallery/PROC_SGRENDER.html&lt;/A&gt; or the SAS graphics BLOGS.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 17:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506060#M17246</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-19T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506063#M17247</link>
      <description>I think that I only added the colors=black when I kept getting that error message to see if I could prevent it from trying to use that invalid color. However, rather than trusting my memory I reset the device drive to TIFFB and removed all of the color statements from my code. I still get the error message.</description>
      <pubDate>Fri, 19 Oct 2018 17:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506063#M17247</guid>
      <dc:creator>dleduc</dc:creator>
      <dc:date>2018-10-19T17:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506068#M17248</link>
      <description>&lt;P&gt;Okay, thanks again for the information. We'll continue to investigate.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 17:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506068#M17248</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-10-19T17:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506162#M17249</link>
      <description>&lt;P&gt;I'm having trouble reproducing this issue. Can you run the program below and see if you get the problem. Also, what version of SAS are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods listing gpath=".";

options orientation=landscape;
filename plot "dist_vs_ring_dbh.tif";
goptions  device=tiffb gsfname=plot gsfmode=replace colors=(BLACK) xpixels=6000 ypixels=4800 xmax=10 in ymax=8 in;
proc gplot data=sashelp.class;
plot height*weight;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 20:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506162#M17249</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-10-19T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Graph error message</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506180#M17250</link>
      <description>&lt;P&gt;First of all I am funning version 9.4&amp;nbsp;&amp;nbsp; Your code ran fine, so I added to it until I got a failure.&amp;nbsp; The following code produces the error:&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;/* ods _all_ close;
ods listing gpath="."; */

ods listing;
axis1 label=(font="Arial" h=2.5 'Ring Number') value=( font="Arial" h=2.5) order=0 to 70 by 10 major=(width=20) minor=none width=20 color=black; 
axis2 label=(angle=90 h=2.5 font="Arial" 'Distance (mm)') value=( font="Arial" h=2.5)  major=(width=20) order=0 to 200 by 50 minor=none width=20 color=black;
legend1 cborder=black label=(font="Arial" h=2 'Tree') across=1 mode=protect position=(bottom right inside)  value=( font="Arial" h=2);


options orientation=landscape;
filename plot "sastest.tif";
goptions  device=tiffb gsfname=plot gsfmode=replace colors=(BLACK) xpixels=6000 ypixels=4800 xmax=10 in ymax=8 in;
proc gplot data=sashelp.class;
plot weight*height=sex/haxis=axis1 vaxis=axis2 legend=legend1;
run;
quit;

proc print data=sashelp.class;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The key to failure is using the legend.&amp;nbsp; The legend1 statement does not cause an error by itself, but when it is used with legend=legend1, it produces the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate all of your help, but if you don't get any response from me for a couple of weeks it is not that I am uninterested, but my timing was off.&amp;nbsp; I'm about to go on vacation for a couple of weeks and will only return to this problem upon my return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 22:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-error-message/m-p/506180#M17250</guid>
      <dc:creator>dleduc</dc:creator>
      <dc:date>2018-10-19T22:14:00Z</dc:date>
    </item>
  </channel>
</rss>

