<?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 回复： Graph Builder - Custom Marker Colors Not Saving in Script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Custom-Marker-Colors-Not-Saving-in-Script/m-p/469701#M71366</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;我使用的是Big Class.jmp。用‘身高’和‘体重’作为Y和X。把‘身高’放入‘颜色’。&lt;/P&gt;&lt;P&gt;选择需要的色阶，然后将label中点的配置进行调整。（如图）&lt;/P&gt;&lt;P&gt;然后保存脚本就可以了。脚本中主要的区别是图中的点被定义的次数不同。&lt;/P&gt;&lt;P&gt;调整后的脚本如下：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ), Color( :height ) ),
	Elements( Points( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties(
					0,
					{gradient( {Color Theme( "Spectral" )} )},
					Item ID( "height", 1 )
				)
			)}
		),
		Dispatch( {}, "400", LegendBox, {Set Title( "" )} )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;未做调整的脚本如下：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;多了scatter plot开始时默认时的定义&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;Properties( 1, {Line Color( -11538191 ), Fill Color( -11538191 ), gradient( {Color Theme( "Spectral" )} )}, Item ID( "height", 2 ))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :weight ), Y( :height ), Color( :height ) ),
	Elements( Points( X, Y, Legend( 9 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				9,
				Properties(
					0,
					{gradient( {Color Theme( "Spectral" )} )},
					Item ID( "height", 1 )
				),
				Properties(
					1,
					{Line Color( -11538191 ), Fill Color( -11538191 ),
					gradient( {Color Theme( "Spectral" )} )},
					Item ID( "height", 2 )
				)
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 00:08:32 GMT</pubDate>
    <dc:creator>frank_wang</dc:creator>
    <dc:date>2022-03-15T00:08:32Z</dc:date>
    <item>
      <title>Graph Builder - Custom Marker Colors Not Saving in Script</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Custom-Marker-Colors-Not-Saving-in-Script/m-p/469659#M71360</link>
      <description>&lt;P&gt;Hi there - the graph that a colleague of mine made originally had markers color coded by a continuous column (see "Original" image). When they save the script and re-run the script to re-create the graph, the color-coding goes away and all of the markers become maroon (see "After" image). Do you have any suggestions for how to keep the color-coding such that each time the graph script is run, the color coding stays? What could be the issue?&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;Original&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Original.PNG" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40791iF7FE1BE985C100B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Original.PNG" alt="Original.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&amp;gt;After rerunning the script and despite saving the color scheme:&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;After&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="After.PNG" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40792i5EE2C90A5D0F2165/image-size/medium?v=v2&amp;amp;px=400" role="button" title="After.PNG" alt="After.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:22:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Custom-Marker-Colors-Not-Saving-in-Script/m-p/469659#M71360</guid>
      <dc:creator>AU</dc:creator>
      <dc:date>2023-06-11T11:22:34Z</dc:date>
    </item>
    <item>
      <title>回复： Graph Builder - Custom Marker Colors Not Saving in Script</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Custom-Marker-Colors-Not-Saving-in-Script/m-p/469701#M71366</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;我使用的是Big Class.jmp。用‘身高’和‘体重’作为Y和X。把‘身高’放入‘颜色’。&lt;/P&gt;&lt;P&gt;选择需要的色阶，然后将label中点的配置进行调整。（如图）&lt;/P&gt;&lt;P&gt;然后保存脚本就可以了。脚本中主要的区别是图中的点被定义的次数不同。&lt;/P&gt;&lt;P&gt;调整后的脚本如下：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ), Color( :height ) ),
	Elements( Points( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties(
					0,
					{gradient( {Color Theme( "Spectral" )} )},
					Item ID( "height", 1 )
				)
			)}
		),
		Dispatch( {}, "400", LegendBox, {Set Title( "" )} )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;未做调整的脚本如下：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;多了scatter plot开始时默认时的定义&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;Properties( 1, {Line Color( -11538191 ), Fill Color( -11538191 ), gradient( {Color Theme( "Spectral" )} )}, Item ID( "height", 2 ))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :weight ), Y( :height ), Color( :height ) ),
	Elements( Points( X, Y, Legend( 9 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				9,
				Properties(
					0,
					{gradient( {Color Theme( "Spectral" )} )},
					Item ID( "height", 1 )
				),
				Properties(
					1,
					{Line Color( -11538191 ), Fill Color( -11538191 ),
					gradient( {Color Theme( "Spectral" )} )},
					Item ID( "height", 2 )
				)
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 00:08:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Custom-Marker-Colors-Not-Saving-in-Script/m-p/469701#M71366</guid>
      <dc:creator>frank_wang</dc:creator>
      <dc:date>2022-03-15T00:08:32Z</dc:date>
    </item>
  </channel>
</rss>

