<?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: Graph Builder: Additional Y variables with the same color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/529234#M75270</link>
    <description>&lt;P&gt;Hi jthi,&lt;/P&gt;&lt;P&gt;yes, thanks, that is a good solution if :State is supposed to always have the same colors in all plots. In fact, I have several plots and two of them involve :State with a different coloring. So I thought, instead of realizing the coloring via a column property I should rather do it in the respective plots.&lt;/P&gt;&lt;P&gt;What I could do is to copy :State as often as necessary and always assign a different value color property. But I don't like that solution because it feels like a workaround. :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 06:02:44 GMT</pubDate>
    <dc:creator>Robbb</dc:creator>
    <dc:date>2022-08-02T06:02:44Z</dc:date>
    <item>
      <title>Graph Builder: Additional Y variables with the same color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/528720#M75225</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;currently, I am writing a script that creates a plot template among other stuff in form of a pre-filled graph builder. Script below. The open graph builder is supposed to be used by the user who usually wants to have a look at other signals in addition to the existing 4 in the plot. So he usually starts to drags another column and drop it on top or at the bottom of the existing 4 signals.&lt;/P&gt;&lt;P&gt;The problem is that the new signals that are dropped onto the y axis manually are assigned standard colors. I would like all signals in the plot to have the same color that is defined by :State, no matter how many signals are dropped on and dragged off the y axis without having to manually assign the correct colors via the legend properties.&lt;/P&gt;&lt;P&gt;How to achieve that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables(
		X( :Time ),
		Y( :Signal 1 ),
		Y( :Signal 2 ),
		Y( :Signal 3 ),
		Y( :Signal 4 ),
		Color( :State )
	),
	Elements( Position( 1, 1 ), Line( X, Y, Legend( 4 ) ) ),
	Elements( Position( 1, 2 ), Line( X, Y, Legend( 5 ) ) ),
	Elements( Position( 1, 3 ), Line( X, Y, Legend( 6 ) ) ),
	Elements( Position( 1, 4 ), Line( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch( {}, "Signal 3", ScaleBox, {Format( "Best", 12 )} ),
		Dispatch( {}, "Signal 4", ScaleBox, {Format( "Best", 12 )} ),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				4,
				Properties( 0, {Line Color( 21 )}, Item ID( "Here", 1 ) ),
				Properties( 1, {Line Color( 20 )}, Item ID( "are", 1 ) ),
				Properties( 2, {Line Color( 41 )}, Item ID( "different", 1 ) ),
				Properties( 3, {Line Color( 37 )}, Item ID( "labels", 1 ) ),
				Properties( 4, {Line Color( 0 )}, Item ID( "for", 1 ) ),
				Properties( 5, {Line Color( 32 )}, Item ID( "certain", 1 ) ),
				Properties( 6, {Line Color( 1 )}, Item ID( "system", 1 ) ),
				Properties( 7, {Line Color( 32 )}, Item ID( "states", 1 ) )
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:26:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/528720#M75225</guid>
      <dc:creator>Robbb</dc:creator>
      <dc:date>2023-06-11T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Additional Y variables with the same color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/528741#M75227</link>
      <description>&lt;P&gt;One option would be to set Value Colors column property to :State with desired colors.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:23:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/528741#M75227</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-08-01T13:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Additional Y variables with the same color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/529234#M75270</link>
      <description>&lt;P&gt;Hi jthi,&lt;/P&gt;&lt;P&gt;yes, thanks, that is a good solution if :State is supposed to always have the same colors in all plots. In fact, I have several plots and two of them involve :State with a different coloring. So I thought, instead of realizing the coloring via a column property I should rather do it in the respective plots.&lt;/P&gt;&lt;P&gt;What I could do is to copy :State as often as necessary and always assign a different value color property. But I don't like that solution because it feels like a workaround. :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 06:02:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/529234#M75270</guid>
      <dc:creator>Robbb</dc:creator>
      <dc:date>2022-08-02T06:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Additional Y variables with the same color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/529253#M75275</link>
      <description>&lt;P&gt;I think you might have to do some scripting and set those colors when plot is changed. Not sure if it can be automatically triggered on change but you could for example add a button.&lt;/P&gt;
&lt;P&gt;There is also option to use Color or Mark by Column... but you would run into same issue if you want to use different color for same state in different plots.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1659426064023.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44481i25C5F54240B036FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1659426064023.png" alt="jthi_0-1659426064023.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 07:43:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Additional-Y-variables-with-the-same-color/m-p/529253#M75275</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-08-02T07:43:40Z</dc:date>
    </item>
  </channel>
</rss>

