全部,
我需要在图表上添加几个文本注释。
它们都是单行文本,但长度不同。所以我需要使用固定大小(0)来调整标签长度以匹配文本。
但是这样做之后,它还会调整垂直方向的文字大小,把文字放得太高,这让我非常困扰(左图)。如果我设置“固定大小(1)”,就可以直接控制标签的大小,文字位置看起来也还可以(右图),但是我的文字长度不一致,要么标签太长,要么文字超出标签大小时,就会自动调整为“固定大小(0)”,看起来非常难看。


有没有办法调整标签内文本的位置并使用固定大小(0)?
<< Vertical Alignment("bottom") 不起作用。
以下是代码:
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
taHeight = 20;
ta1 = rbiv << Add Text Annotation();
ta2 = rbiv << Add Text Annotation();
ta1 << Text( "We need to discuss this at the next meeting." );
ta1 << Text Box( {70, 80, 350, 80+taHeight} );
ta2 << Text( "We need to discuss this at the next " );
ta2 << Text Box( {70, 120, 350, 120+taHeight} );
{ta1, ta2} << Background Color( "Light Yellow" ) << Text Color( "red" )/*<
<SET wrap=""></SET>
<BR /> <BR />