全部,
我需要在圖表上添加幾個文字註釋。
它們都是單行文本,但長度不同。所以我需要使用固定大小(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 />