大家好 -
我正在运行 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.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 - 我们向开发团队开了一张票,但很高兴也记录了这个解决方法。