如何设置“未选中的褪色”的“褪色”程度你好,
when data points in a graph are selected, the other data points get faded (by default and if the marker selection mode is set so; other options are also possible).
褪色意味着“相同的颜色,但不那么强烈”。
是否有定义“褪色”程度的选项?
当图形导出到“交互式 html”时,未选择的点“只是”白色
- 但实际上,这使得区分选定和未选定数据点变得更加容易。
有时更多或更少的褪色是首选,如果已经有一个选项来设置“褪色”的程度,那就太好了......
图形回复:“未选择的褪色”的“褪色”程度这可能是这个想法的可能实现:
选择数据点时,选择的数据点会变大且清晰可见,未选择的数据点会变小并变暗。
顺便说一下,我的代码中似乎还有一些错误:
选择和取消选择数据点后,附加列弹回“M”/“F”(如预期),但格式有所改变。
最后在我的电脑上设置(v 16.2.0,win):
{Legend Model(
3,
Properties(0,{Line Color( 3 ), Marker Size( 6 ), Transparency( 0.3 )},Item ID( "F", 1 )),
Properties(1,{Line Color( 21 ), Marker( "FilledCircle" ), Marker Size( 6 )},Item ID( "M", 1 )),
....
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "sexformula",
Character,
"Nominal",
Formula( If( N items(dt << get selected rows)==0 ,:sex ,If(Selected(),Concat(:sex," (selected)"), Concat(:sex," -" ))) ));
new window("test",
H list Box (
dt << Graph Builder(
Show Control Panel( 0 ),
Shol Legend(0),
Variables( X( :name ), Y( :weight ) ),
Elements( Bar( X, Y, Legend( 5 ) ) )
);
dt << Graph Builder(
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Color( :sexformula ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
3,
Properties( 0, {Line Color( 3 ),Marker Size( 6 ),Transparency(1),Marker("Dot")}, Item ID( "F", 1 )),
Properties( 1, {Line Color( 21 ),Marker Size( 6 ),Transparency(1),Marker("Dot")}, Item ID( "M", 1 )),
Properties( -1, {Line Color( 3 ),Marker Size( 3 ),Transparency(0.3),Marker("Dot")}, Item ID( "F -", 1 )),
Properties( -1, {Line Color( 21 ),Marker Size( 3 ),Transparency(0.3),Marker("Dot")}, Item ID( "M -", 1 )),
Properties( -1, {Line Color( 3 ),Marker Size( 10 ),Transparency(1),Marker( "FilledCircle" )},Item ID( "F (selected)", 1)),
Properties( -1, {Line Color( 21 ),Marker Size( 10 ),Transparency(1),Marker( "FilledCircle" )},Item ID( "M (selected)", 1))
)}
)
)
)))
回复:“未选择的褪色”的“褪色”程度你是对的。
实际上,我的问题的直接答案:)
回复:“未选择的褪色”的“褪色”程度很顺利的方法!
动态列公式 - 很酷。
这提供了很大的灵活性 - 而且非常简单 
回复:“未选择的褪色”的“褪色”程度也许我在其他帖子中遗漏了一些东西,但你不能只在 JMP 首选项中设置级别吗?

回复:“未选择的褪色”的“褪色”程度对行状态更改做出反应的另一种方法是使用使用行状态的公式创建新列。然后您可以在 Graph Builder(或其他平台)中使用这些列,它们将对不断变化的公式做出反应。
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "sexformula",
Character,
"Nominal",
Formula( If( Selected(), "Selected", :sex ) )
);
dt << Graph Builder(
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Color( :sexformula ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
3,
Properties(
2,
{Line Color( 1 ), Marker Size( 6 )},
Item ID( "Selected", 1 )
)
)}
)
)
);
回复:“未选择的褪色”的“褪色”程度你好,
@danschikore给了我使用行状态处理程序的提示。 -> 很棒的功能,谢谢 
现在我可以通过任何数据点选择来触发函数 f:
dt << make row state handler( f );
但就像生活中经常发生的那样,你解决了 1 个问题,然后又出现了 2 个新问题:
a) GraphBuilder 颜色设置覆盖行颜色设置
-> 是否有设置使行颜色设置覆盖 GraphBuilder 颜色?
更严重的是:
b) 行状态处理程序对行状态的任何变化做出反应——不幸的是我的新“标签”和“颜色”也发生了变化。
并且日志告诉我“行状态不应由行状态处理程序更改”。
有没有办法只对“选择”变化做出反应,而不是对所有行状态变化做出反应?

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
f = Function( {a},
selected = dt << Get selected Rows();
if(N Row(selected)>0,
print("change size & font");
rs = dt << get row states;
bits0 = (mod(rs, 2)==1); //select
bits1 = (mod(floor(rs/2),2)==1)*2; //exclude
bits2 = (mod(floor(rs/4),2)==1)*4; //hide
highlight = 200; // large dot, label (keep the automatic color)
faded = 8192; //light gray --> unfortunately, no effect
setStates = bits0 + bits1 + bits2 + highlight * bits0 + faded *(1-bits0);
show(rs, bits0,bits1,bits2,setStates);
dt << Set Row States (setStates);
);
);
dt << Graph Builder(
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Color( :sex ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);
rs = dt << make row state handler( f );
回复:“未选择的褪色”的“褪色”程度你好@乔治,
这可以工作。
选择数据点后如何触发 jsl 代码的执行?
回复:“未选择的褪色”的“褪色”程度我不认为这是可以设置的,我不会按照你描述的方式使用它。
还有很多其他的可能性来标记行/点,例如。按颜色、标记、大小、标签、图表中的位置... 你真的需要另一个维度吗?
一种解决方法(为了获得您想要的功能)可能是,您放入一个公式,将未选择的颜色转换为更退化的颜色,并将其定义为颜色行状态。
回复:“未选择的褪色”的“褪色”程度您可以尝试按列着色或标记(在数据表行中的红色箭头下)并使用连续列。 颜色将根据该列的值而变化(它们被合并)。我不知道如果您排除(但不隐藏)任何行,它们是否会出现,但我认为这可能是您想要的。