<?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 Setting legend color pallet on graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Setting-legend-color-pallet-on-graph-builder/m-p/261070#M51100</link>
    <description>&lt;P&gt;I have a script that creates a graph builder output with a dataset that has a variable number of items in the legend and variable number of frames.&amp;nbsp; I'm able to get the frame tree structure then format them but unable to format the legend.&amp;nbsp; I think I'm close but something is not functional in the very last line.&lt;/P&gt;&lt;P&gt;Here's an example script.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open("$SAMPLE_DATA/Solubility.jmp");
dtstack = dt &amp;lt;&amp;lt; Stack(
	columns(:Name( "1-Octanol" ),:Ether,:Chloroform,:Benzene,:Carbon Tetrachloride,	:Hexane	),
	Source Label Column( "Gas" ),
	Stacked Data Column( "Solubility" )
);

gbname = dtstack &amp;lt;&amp;lt; Graph Builder(	Size( 668, 643 ),	Show Control Panel( 0 ),
	Variables( Y( :Solubility ), Wrap( :Gas ), Overlay( :Labels ) ),
	Elements( Points( Y, Legend( 12 ) ) )
);

frames = gbname &amp;lt;&amp;lt; xpath("//FrameBox");  //gets frames, works
frames &amp;lt;&amp;lt; set background color( -16512221 );  //formats frames, works
LegendPallet = gbname &amp;lt;&amp;lt; xpath("//LegendBox"); //gets legend, i think this works
LegendPallet &amp;lt;&amp;lt; Color Theme( "Pastel" ); //formats color theme --doesn't work.&amp;nbsp;&amp;nbsp;I&amp;nbsp;suspect&amp;nbsp;an&amp;nbsp;issue&amp;nbsp;with&amp;nbsp;my&amp;nbsp;obj.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Apr 2020 16:33:02 GMT</pubDate>
    <dc:creator>SamKing</dc:creator>
    <dc:date>2020-04-24T16:33:02Z</dc:date>
    <item>
      <title>Setting legend color pallet on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-legend-color-pallet-on-graph-builder/m-p/261070#M51100</link>
      <description>&lt;P&gt;I have a script that creates a graph builder output with a dataset that has a variable number of items in the legend and variable number of frames.&amp;nbsp; I'm able to get the frame tree structure then format them but unable to format the legend.&amp;nbsp; I think I'm close but something is not functional in the very last line.&lt;/P&gt;&lt;P&gt;Here's an example script.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open("$SAMPLE_DATA/Solubility.jmp");
dtstack = dt &amp;lt;&amp;lt; Stack(
	columns(:Name( "1-Octanol" ),:Ether,:Chloroform,:Benzene,:Carbon Tetrachloride,	:Hexane	),
	Source Label Column( "Gas" ),
	Stacked Data Column( "Solubility" )
);

gbname = dtstack &amp;lt;&amp;lt; Graph Builder(	Size( 668, 643 ),	Show Control Panel( 0 ),
	Variables( Y( :Solubility ), Wrap( :Gas ), Overlay( :Labels ) ),
	Elements( Points( Y, Legend( 12 ) ) )
);

frames = gbname &amp;lt;&amp;lt; xpath("//FrameBox");  //gets frames, works
frames &amp;lt;&amp;lt; set background color( -16512221 );  //formats frames, works
LegendPallet = gbname &amp;lt;&amp;lt; xpath("//LegendBox"); //gets legend, i think this works
LegendPallet &amp;lt;&amp;lt; Color Theme( "Pastel" ); //formats color theme --doesn't work.&amp;nbsp;&amp;nbsp;I&amp;nbsp;suspect&amp;nbsp;an&amp;nbsp;issue&amp;nbsp;with&amp;nbsp;my&amp;nbsp;obj.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Apr 2020 16:33:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-legend-color-pallet-on-graph-builder/m-p/261070#M51100</guid>
      <dc:creator>SamKing</dc:creator>
      <dc:date>2020-04-24T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting legend color pallet on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-legend-color-pallet-on-graph-builder/m-p/261081#M51102</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Categorical Color Theme( "Pastel" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See the Scripting Index for an example&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; search on pastel&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 17:33:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-legend-color-pallet-on-graph-builder/m-p/261081#M51102</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-24T17:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting legend color pallet on graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-legend-color-pallet-on-graph-builder/m-p/261086#M51103</link>
      <description>Thanks! Looks like my primary issue was that i was trying to work it through the legendbox name instead of the graph object.</description>
      <pubDate>Fri, 24 Apr 2020 17:39:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-legend-color-pallet-on-graph-builder/m-p/261086#M51103</guid>
      <dc:creator>SamKing</dc:creator>
      <dc:date>2020-04-24T17:39:43Z</dc:date>
    </item>
  </channel>
</rss>

