<?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 Why do the colors of different other points fade away in Graphbuilder? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Why-do-the-colors-of-different-other-points-fade-away-in/m-p/664229#M85258</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to work on a script to edit the legend, based on a Flag column. When I recreate the same plot in GraphBuilder, I get a darker shade of colors, but when I run my script, it gives me a faded shade than normal. Why is this? I know it is something related to rows being selected, and the GraphBuilder just highlights those rows or cells. I have tried incorporating&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Clear Column Selection();
dt &amp;lt;&amp;lt; Clear Row Selection();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but it does not work. The original plot&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kenobi_0-1690840644432.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55484i57D3A3A6EE3DB718/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kenobi_0-1690840644432.png" alt="Kenobi_0-1690840644432.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the faded plot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kenobi_1-1690840690774.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55485i7229AA7A0D666C1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kenobi_1-1690840690774.png" alt="Kenobi_1-1690840690774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dlg = Column Dialog(
	yList = Col List( "Ys",
		Min Col(1)
	),
	xList = Col List( "Xs",
		Min Col(1),
		Max Col(1)
	),
	byList = Col List( "Color/Mark By", 
		Max Col( 1 ) )
);

color_cols = dlg["byList"];

If( Is Missing( color_cols ) != {},
	dt &amp;lt;&amp;lt; Color or Mark by Column( color_cols[1], Marker Theme( "solid" ), Color Theme( "JMP Dark" ) );
	for each row(
		If(As Column( dt, color_cols[1] ) == "", As Column( dt, color_cols[1] )="!!");
    );
	dt &amp;lt;&amp;lt; select where(As Column( dt, color_cols[1] ) == "!!" ) &amp;lt;&amp;lt; Markers(0);
	dt &amp;lt;&amp;lt; select where(As Column( dt, color_cols[1] ) == "!!") &amp;lt;&amp;lt; Colors(0);
);

dt &amp;lt;&amp;lt; Clear Column Selection();
dt &amp;lt;&amp;lt; Clear Row Selection();

meas_cols = dt &amp;lt;&amp;lt; Get Column Names("String");
If(dlg["button"] == 1,

	// Get the selected X and Y columns
	x_col = dlg["xList"];
	y_cols = dlg["yList"];

	
	nw = New Window( "graphs", &amp;lt;&amp;lt;journal, myVLB = V List Box() );
	
	For(i = 1, i &amp;lt;= N Items(y_cols), i++,

		y_name = Char(y_cols[i]);
		x_name = Char(x_col[1]);

		gb = dt &amp;lt;&amp;lt; Graph Builder(
			Size(700, 350),
			Show Control Panel(0),
			Show Footer(0),
			Variables(X(x_col[1]), Y(y_cols[i]), Color( color_cols[1] )),
			Elements(Points(X, Y, Legend(7))),
			invisible,
			SendToReport(
			Dispatch(
				{},
				"Graph Builder",
				OutlineBox,
				{Set Title( y_name || " vs " || x_name ), Image Export Display( Normal )}
				),
			Dispatch(
				{},
				"Graph Builder",
				FrameBox,
				{Marker Size( 5 ), Transparency(1)}
				),
			Dispatch(
				{},
				"400",
				ScaleBox,
				{Legend Model(
					7,
					Properties( 0, {Line Color( 0 )}, Item ID( "!!", 1 ) )
				)}
			)
		);
		lgnd = gb &amp;lt;&amp;lt; Get Legend Display;
		items = lgnd &amp;lt;&amp;lt; Get Items;

		For Each({item}, items, 
			show(item &amp;lt;&amp;lt; get label);
			If(item &amp;lt;&amp;lt; Get Label == "!!", 
				item &amp;lt;&amp;lt; Set Visible(0)
			)
		);
		gb &amp;lt;&amp;lt; Show Legend(1);	
		myVLB &amp;lt;&amp;lt; append( Report( gb ) );
		gb &amp;lt;&amp;lt; delete;
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The flag column is stored in color_cols[1], which is the full form of region column for few cells, and empty everywhere else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 22:00:56 GMT</pubDate>
    <dc:creator>Kenobi</dc:creator>
    <dc:date>2023-07-31T22:00:56Z</dc:date>
    <item>
      <title>Why do the colors of different other points fade away in Graphbuilder?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-do-the-colors-of-different-other-points-fade-away-in/m-p/664229#M85258</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to work on a script to edit the legend, based on a Flag column. When I recreate the same plot in GraphBuilder, I get a darker shade of colors, but when I run my script, it gives me a faded shade than normal. Why is this? I know it is something related to rows being selected, and the GraphBuilder just highlights those rows or cells. I have tried incorporating&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Clear Column Selection();
dt &amp;lt;&amp;lt; Clear Row Selection();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but it does not work. The original plot&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kenobi_0-1690840644432.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55484i57D3A3A6EE3DB718/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kenobi_0-1690840644432.png" alt="Kenobi_0-1690840644432.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the faded plot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kenobi_1-1690840690774.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55485i7229AA7A0D666C1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kenobi_1-1690840690774.png" alt="Kenobi_1-1690840690774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dlg = Column Dialog(
	yList = Col List( "Ys",
		Min Col(1)
	),
	xList = Col List( "Xs",
		Min Col(1),
		Max Col(1)
	),
	byList = Col List( "Color/Mark By", 
		Max Col( 1 ) )
);

color_cols = dlg["byList"];

If( Is Missing( color_cols ) != {},
	dt &amp;lt;&amp;lt; Color or Mark by Column( color_cols[1], Marker Theme( "solid" ), Color Theme( "JMP Dark" ) );
	for each row(
		If(As Column( dt, color_cols[1] ) == "", As Column( dt, color_cols[1] )="!!");
    );
	dt &amp;lt;&amp;lt; select where(As Column( dt, color_cols[1] ) == "!!" ) &amp;lt;&amp;lt; Markers(0);
	dt &amp;lt;&amp;lt; select where(As Column( dt, color_cols[1] ) == "!!") &amp;lt;&amp;lt; Colors(0);
);

dt &amp;lt;&amp;lt; Clear Column Selection();
dt &amp;lt;&amp;lt; Clear Row Selection();

meas_cols = dt &amp;lt;&amp;lt; Get Column Names("String");
If(dlg["button"] == 1,

	// Get the selected X and Y columns
	x_col = dlg["xList"];
	y_cols = dlg["yList"];

	
	nw = New Window( "graphs", &amp;lt;&amp;lt;journal, myVLB = V List Box() );
	
	For(i = 1, i &amp;lt;= N Items(y_cols), i++,

		y_name = Char(y_cols[i]);
		x_name = Char(x_col[1]);

		gb = dt &amp;lt;&amp;lt; Graph Builder(
			Size(700, 350),
			Show Control Panel(0),
			Show Footer(0),
			Variables(X(x_col[1]), Y(y_cols[i]), Color( color_cols[1] )),
			Elements(Points(X, Y, Legend(7))),
			invisible,
			SendToReport(
			Dispatch(
				{},
				"Graph Builder",
				OutlineBox,
				{Set Title( y_name || " vs " || x_name ), Image Export Display( Normal )}
				),
			Dispatch(
				{},
				"Graph Builder",
				FrameBox,
				{Marker Size( 5 ), Transparency(1)}
				),
			Dispatch(
				{},
				"400",
				ScaleBox,
				{Legend Model(
					7,
					Properties( 0, {Line Color( 0 )}, Item ID( "!!", 1 ) )
				)}
			)
		);
		lgnd = gb &amp;lt;&amp;lt; Get Legend Display;
		items = lgnd &amp;lt;&amp;lt; Get Items;

		For Each({item}, items, 
			show(item &amp;lt;&amp;lt; get label);
			If(item &amp;lt;&amp;lt; Get Label == "!!", 
				item &amp;lt;&amp;lt; Set Visible(0)
			)
		);
		gb &amp;lt;&amp;lt; Show Legend(1);	
		myVLB &amp;lt;&amp;lt; append( Report( gb ) );
		gb &amp;lt;&amp;lt; delete;
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The flag column is stored in color_cols[1], which is the full form of region column for few cells, and empty everywhere else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 22:00:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-do-the-colors-of-different-other-points-fade-away-in/m-p/664229#M85258</guid>
      <dc:creator>Kenobi</dc:creator>
      <dc:date>2023-07-31T22:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the colors of different other points fade away in Graphbuilder?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-do-the-colors-of-different-other-points-fade-away-in/m-p/664263#M85260</link>
      <description>&lt;P&gt;It's shaded because you selected some rows.&lt;/P&gt;&lt;P&gt;May be you can share the Log to check if there's any issue with the script to clear the selection ;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;dt &amp;lt;&amp;lt; Clear Column Selection();
dt &amp;lt;&amp;lt; Clear Row Selection();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or try;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Clear selection;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Clear Select();&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 00:51:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-do-the-colors-of-different-other-points-fade-away-in/m-p/664263#M85260</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-08-01T00:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the colors of different other points fade away in Graphbuilder?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-do-the-colors-of-different-other-points-fade-away-in/m-p/664320#M85268</link>
      <description>&lt;P&gt;Yes, you are indeed correct. I checked my logs and the error is in the line&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Clear Row Selection();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can confirm&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Clear select;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;works! Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:46:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-do-the-colors-of-different-other-points-fade-away-in/m-p/664320#M85268</guid>
      <dc:creator>Kenobi</dc:creator>
      <dc:date>2023-08-01T11:46:40Z</dc:date>
    </item>
  </channel>
</rss>

