制作条形图时,我已将两种条形颜色都更改为灰色,但已标记了一个图案。但是,图案变化不会反映在图例上。我怎样才能解决这个问题?

谢谢。
您正在运行什么版本的JMP?我在JMP 15.1中没有问题
这是我的例子。 它对您的JMP副本有效吗?

names default to here(1);
dt = Open("$SAMPLE_DATA/big class.jmp");
dt << Graph Builder(
Legend Position( "Inside Right" ),
Variables( X( :age ), Y( :height ), Overlay( :sex ) ),
Elements( Bar( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"height",
ScaleBox,
{Min( 0 ), Max( 125.6145 ), Inc( 20 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
6,
Properties( 0, {Fill Color( 0 )}, Item ID( "F", 1 ) ),
Properties(
1,
{Fill Color( 1 ), Fill Pattern( "hatch medium" )},
Item ID( "M", 1 )
)
)}
),
Dispatch( {}, "400", LegendBox, {Set Title( "" )} )
)
)谢谢您的帮助,但不幸的是,该方法也不起作用。图例显示颜色变化,但不显示图案。

看来解决方案是为您获取JMP 15.1.0版本的。 请与您的大学供应商联系。 他们现在应该拥有它。
您是在Mac还是PC上运行?哪个操作系统?我认为您必须联系JMP支持
support@jmp.com
我正在使用Mac,OS Catalina,10.15.2