<?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: Adding custom marker and colors to GraphBuilder in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/662108#M85091</link>
    <description>&lt;P&gt;Yes, I tried this. But it just plots the marked or flagged rows. Is there a way to overcome this? I want the black dots, and the other labels on the plot, but I do not want the black dot to show up on the legend, just want the labels in the legend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I tried this, it works, but I am unable to set the color of the default black dots. Those dots appear in a new color (sorry, have some difficulty with colors)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Variables(X(x_col[1]), Y(y_cols[i]), Color(_files[1])),
Elements(Points(X, Y, Legend(28))),&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 25 Jul 2023 13:13:09 GMT</pubDate>
    <dc:creator>Kenobi</dc:creator>
    <dc:date>2023-07-25T13:13:09Z</dc:date>
    <item>
      <title>Adding custom marker and colors to GraphBuilder in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/661934#M85069</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add color/markers to row states through Flags mentioned in a particular column. For instance, working on the Cities dataset, I created random flags (5 different classes of flags) for few rows, and most are empty. Now, the majority of those values are plotted with a single black dot, I am fine with it. But, the major issue arises, when I try to create an individual value plot with a legend. I do not want the black dot to show up on the legend, I want the 5 different classes with different colors to show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kenobi_0-1690223166065.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55240i23A697F3727206F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kenobi_0-1690223166065.png" alt="Kenobi_0-1690223166065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kenobi_1-1690223381064.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55241iF006E92D20AE687E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kenobi_1-1690223381064.png" alt="Kenobi_1-1690223381064.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;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)
        )
    );
_files =     dlg["byList"];
dt &amp;lt;&amp;lt; Color or Mark by Column( _files[1], Marker Theme( "solid" ), Color Theme("JMP default") );

meas_cols = dt &amp;lt;&amp;lt; Get Column Names("String");
// Get the selected X and Y columns
x_col = dlg["xList"];
y_cols = dlg["yList"];

// Create new window with a vertical list box to store graph builder objects   
nw = New Window( "graphs", &amp;lt;&amp;lt;journal, myVLB = V List Box() );

// Iterate over the Y columns and create a Graph Builder plot for each column
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])),
		Elements(Points(X, Y, Legend(24))),
		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( 
			{},
			"graph title", 
			TextEditBox, 
			{Set Text( "" )} 
			),
		Dispatch( 
			{}, 
			"X title", 
			TextEditBox, 
			{Set Text( "" )} 
			)
		// Dispatch( 
		//     {}, 
		//     "Y title", 
		//     TextEditBox, 
		//     {Set Text( "" )} 
		//     ),
		)
	);
	
	gb &amp;lt;&amp;lt; Show Legend(1);
	
	myVLB &amp;lt;&amp;lt; append( Report( gb ) );
	
	// Save the plot as an image with specified width, height, and format (optional)
	// gb &amp;lt;&amp;lt; Save Picture("Plot_" || Char(i) || ".emf", EMF);
	gb &amp;lt;&amp;lt; delete;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2023 19:02:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/661934#M85069</guid>
      <dc:creator>Kenobi</dc:creator>
      <dc:date>2023-07-24T19:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom marker and colors to GraphBuilder in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/661955#M85070</link>
      <description>&lt;P&gt;Did you try to drag your column on &lt;STRONG&gt;Overlay&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or in JSL&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;		Variables(X(x_col[1]), Y(y_cols[i]), Overlay(:mycol)),
		Elements(Points(X, Y, Ovelay, Legend(24))),&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2023 19:18:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/661955#M85070</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-24T19:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom marker and colors to GraphBuilder in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/662108#M85091</link>
      <description>&lt;P&gt;Yes, I tried this. But it just plots the marked or flagged rows. Is there a way to overcome this? I want the black dots, and the other labels on the plot, but I do not want the black dot to show up on the legend, just want the labels in the legend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I tried this, it works, but I am unable to set the color of the default black dots. Those dots appear in a new color (sorry, have some difficulty with colors)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Variables(X(x_col[1]), Y(y_cols[i]), Color(_files[1])),
Elements(Points(X, Y, Legend(28))),&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jul 2023 13:13:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/662108#M85091</guid>
      <dc:creator>Kenobi</dc:creator>
      <dc:date>2023-07-25T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom marker and colors to GraphBuilder in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/662290#M85107</link>
      <description>&lt;P&gt;You can right click on the dots to change the color:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1690314471570.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55273iEE2158EA5EB8B0CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1690314471570.png" alt="hogi_1-1690314471570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can also double click on the dots - then the Legends settings open -- where you can select which plots to show and which ones to hide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1690314403562.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55272iE199694BE0BF08D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1690314403562.png" alt="hogi_0-1690314403562.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 19:48:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-custom-marker-and-colors-to-GraphBuilder-in-JSL/m-p/662290#M85107</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-25T19:48:01Z</dc:date>
    </item>
  </channel>
</rss>

