<?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: Change Transparency of Area with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-Transparency-of-Area-with-JSL/m-p/911459#M107088</link>
    <description>&lt;P&gt;You can look for PolySegs and then set their Transparency&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Diamonds Data.jmp");


mod = dt &amp;lt;&amp;lt; Fit Model(
	Y(:Price),
	By(:Color),
	Effects(:Depth),
	Personality("Standard Least Squares"),
	Emphasis("Effect Screening"),
	Run(
		:Price &amp;lt;&amp;lt; {Summary of Fit(0), Analysis of Variance(0), Parameter Estimates(1),
		Sorted Estimates(0), Plot Actual by Predicted(1), Plot Regression(0),
		Plot Residual by Predicted(1)}
	)
);

mod &amp;lt;&amp;lt; prediction and interval formulas;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(1163, 748),
	Show Control Panel(0),
	Show Legend(0),
	Variables(
		X(:Depth),
		Y(:Price),
		Y(:Pred Formula Price By Color, Position(1)),
		Y(:Lower 95% Mean Price By Color, Position(1)),
		Y(:Upper 95% Mean Price By Color, Position(1)),
		Wrap(:Color),
		Overlay(:Color)
	),
	Elements(
		Points(X, Y(1), Legend(7)),
		Line(X, Y(2), Legend(9)),
		Area(X, Y(3), Y(4), Legend(10), Area Style("Range"))
	)
);

fbs = Report(gb) &amp;lt;&amp;lt; XPath("//FrameBox");
For Each({fb}, fbs,
	ps = fb &amp;lt;&amp;lt; Find Seg(PolySeg(1));
	If(!IsEmpty(ps),
		ps &amp;lt;&amp;lt; Transparency(0.25);
	);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Nov 2025 14:35:49 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-11-05T14:35:49Z</dc:date>
    <item>
      <title>Change Transparency of Area with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Transparency-of-Area-with-JSL/m-p/911448#M107087</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am fitting a model by a grouping variable and saving the prediction and interval formulas to my table. I then am putting the original Y, predicted Y, and LCL/UCL on my Y axis and creating a plot with the grouping variable in the Wrap functionality (see code below for an example).&lt;/P&gt;
&lt;P&gt;What I want is to be able to set the transparency of my Area to a specific number thru scripting. I know I can right click in the legend and change it that way, however this is for a script which takes user input so I cannot use the regular Send to Report and Dispatch where I call out the columns in a static manner.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;BR /&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Diamonds Data.jmp" );


mod = Fit Model(
	Y( :Price ),
	By( :Color ),
	Effects( :Depth ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Screening" ),
	Run(
		:Price &amp;lt;&amp;lt; {Summary of Fit( 0 ), Analysis of Variance( 0 ), Parameter Estimates( 1 ),
		Sorted Estimates( 0 ), Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 1 )}
	)
);

mod &amp;lt;&amp;lt; prediction and interval formulas;

Graph Builder(
	Size( 1163, 748 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables(
		X( :Depth ),
		Y( :Price ),
		Y( :Pred Formula Price By Color, Position( 1 ) ),
		Y( :Lower 95% Mean Price By Color, Position( 1 ) ),
		Y( :Upper 95% Mean Price By Color, Position( 1 ) ),
		Wrap( :Color ),
		Overlay( :Color )
	),
	Elements(
		Points( X, Y( 1 ), Legend( 7 ) ),
		Line( X, Y( 2 ), Legend( 9 ) ),
		Area( X, Y( 3 ), Y( 4 ), Legend( 10 ), Area Style( "Range" ), Transparency(0.25) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Nov 2025 14:16:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Transparency-of-Area-with-JSL/m-p/911448#M107087</guid>
      <dc:creator>rcast15</dc:creator>
      <dc:date>2025-11-05T14:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change Transparency of Area with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Transparency-of-Area-with-JSL/m-p/911459#M107088</link>
      <description>&lt;P&gt;You can look for PolySegs and then set their Transparency&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Diamonds Data.jmp");


mod = dt &amp;lt;&amp;lt; Fit Model(
	Y(:Price),
	By(:Color),
	Effects(:Depth),
	Personality("Standard Least Squares"),
	Emphasis("Effect Screening"),
	Run(
		:Price &amp;lt;&amp;lt; {Summary of Fit(0), Analysis of Variance(0), Parameter Estimates(1),
		Sorted Estimates(0), Plot Actual by Predicted(1), Plot Regression(0),
		Plot Residual by Predicted(1)}
	)
);

mod &amp;lt;&amp;lt; prediction and interval formulas;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(1163, 748),
	Show Control Panel(0),
	Show Legend(0),
	Variables(
		X(:Depth),
		Y(:Price),
		Y(:Pred Formula Price By Color, Position(1)),
		Y(:Lower 95% Mean Price By Color, Position(1)),
		Y(:Upper 95% Mean Price By Color, Position(1)),
		Wrap(:Color),
		Overlay(:Color)
	),
	Elements(
		Points(X, Y(1), Legend(7)),
		Line(X, Y(2), Legend(9)),
		Area(X, Y(3), Y(4), Legend(10), Area Style("Range"))
	)
);

fbs = Report(gb) &amp;lt;&amp;lt; XPath("//FrameBox");
For Each({fb}, fbs,
	ps = fb &amp;lt;&amp;lt; Find Seg(PolySeg(1));
	If(!IsEmpty(ps),
		ps &amp;lt;&amp;lt; Transparency(0.25);
	);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Nov 2025 14:35:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Transparency-of-Area-with-JSL/m-p/911459#M107088</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-05T14:35:49Z</dc:date>
    </item>
  </channel>
</rss>

