大家好 -
我正在運行 JMP Pro 16.1.0,但有一個問題讓我抓狂。 我有一個相當複雜的圖表,包含大量數據。我需要為其添加一些文字標籤,以便我可以描述不同的時間段。 文字需要旋轉,以使其適合空間並易於閱讀。 我在一篇文章中讀到,文字註解不能逆時針旋轉,但普通的舊文字可以。所以我添加了文字標籤,如下面的腳本所示:

當我運行腳本時,該圖是完美的。花了很長時間才達到這一點。我對 JMP 中的它非常滿意,它是這樣的:

這是我的問題:當我將圖形匯出/儲存為 SVG 時,文字旋轉丟失,如下所示:

如果我匯出為 EMF 文件,文字旋轉會保留,但我想另存為 SVG。 有什麼想法為什麼會發生這種情況或是否與腳本有關?這真的讓我發瘋,我在這些圖表上花了幾個小時,我只想旋轉這些標籤和一個漂亮的 SVG 檔案。
感謝大家提供的任何意見。
看起來像一個錯誤。 您可以像這樣解決它:
Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.Use the TextFont command to specify the font name and rotation.使用 TextFont 指令指定字型名稱和旋轉。
@奧黛麗_舒爾- 底部圖表是已儲存的 SVG,在外部檢視器(本例中為 Firefox)中開啟。
gb = Graph Builder(
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Smoother( X, Y, Legend( 2 ) )
),
SendToReport(
Dispatch( {}, "height", ScaleBox,
{Label Row( Label Orientation( "Perpendicular" ) )}
),
Dispatch( {}, "weight", ScaleBox,
{Label Row( Label Orientation( "Angled" ) )}
)
)
);
Report( gb )[framebox( 1 )] <<
addgraphicsscript( Text( counterclockwise, {60, 60}, "Hello" ) );
Report( gb )[framebox( 1 )] <<
addgraphicsscript(
{fname, fsize, fstyle, fangle} = Text Font();
Text Font( fname, fsize, fstyle, -90 );
Text( {65, 60}, "Hello" );
);
謝謝你的例子@Craige_Hales - 我們向開發團隊開了一張票,但很高興也記錄了這個解決方法。