回复:在图形生成器中标准化图形感谢您的快速回复。 根据我的经验,在 Power Point 等中传输具有相似外观的 JMP 图形是很棘手的。
我是 JSL 的初学者。因此,我希望有一个简单的解决方案,通过它我能够标准化来自图形构建器的当前图形,关于标题、轴和图形大小或格式(长度:宽度,例如 3:2),并克服不同的在 Power Point 等中查找。
回复:在图形生成器中标准化图形我提供的是适用于给定示例的代码。 它旨在展示您可以用来完成您想要的事情的方法。 但是,由于来自 Graph Builder 的输出的可能性很大,指向 text box() 和轴 box() 的指针对于替代图形可能完全不同。 您需要检查不同的输出,然后将所需的代码移动到您的脚本中。
回复:在图形生成器中标准化图形这么晚才回复很抱歉。我确实尝试构建一个加载项或运行代码:
i = 1;
stop = "No";
While( Window( i ) << Get Window Title != {} & Stop == "No",
If( Word( 2, Window( i ) << Get Window Title, "-" ) == " Graph Builder",
stop = "Yes";
Break();
);
i++;
);
If( stop == "Yes",
// Set the size of the display
Window( i )[Frame Box( 1 )] << Frame Size( 100, 300 );
// Set the title size
Window( i )[Outline Box( 1 )][Text Box( 1 )] << set font size( 20 );
// Set axis font size
Window( i )[AxisBox( 2 )] << label row( set font size( 14 ) );
);对于图形构建器中具有开放图形的其他数据集。我看不到图表有任何变化或影响。我错过了什么吗?
回复:在图形生成器中标准化图形Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Size( 528, 484 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Group X( :age ) ),
Elements( Box Plot( X, Y, Legend( 1 ) ) )
);
// The code below could be put into an JMP Addin, and it would scan through all
// of the windows and when the first Graph Builder output window is found, it
// would set the standard settings
//
// The code could also be changed to display a list of all of the Graph Builder windows found
// and the user could then select the one(s) to set
//
// There are other issues, since the Graph Builder can produce a multitude of
// outputs. The setting of the graph area size, will vary based upon the
// elements within the output display.
i = 1;
stop = "No";
While( Window( i ) << Get Window Title != {} & Stop == "No",
If( Word( 2, Window( i ) << Get Window Title, "-" ) == " Graph Builder",
stop = "Yes";
Break();
);
i++;
);
If( stop == "Yes",
// Set the size of the display
Window( i )[Frame Box( 1 )] << Frame Size( 100, 300 );
// Set the title size
Window( i )[Outline Box( 1 )][Text Box( 1 )] << set font size( 20 );
// Set axis font size
Window( i )[AxisBox( 2 )] << label row( set font size( 14 ) );
);回复:在图形生成器中标准化图形谢谢吉姆的回复。脚本指向正确的方向。
是否有通用方法,我是否可以运行例如一个插件,它将从图形构建器创建的图形转换为定义的标准图形大小、标准标题和轴大小?
回复:在图形生成器中标准化图形这是一个简短的脚本,它将向您展示如何执行此操作的示例......有关此的文档在脚本指南和脚本索引中
帮助==>书籍==>脚本指南
帮助==>脚本索引
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder(
Size( 528, 484 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Group X( :age ) ),
Elements( Box Plot( X, Y, Legend( 1 ) ) )
);
rgb = Report( gb );
// Set the size of the display
rgb[Frame Box( 1 )] << Frame Size( 100, 300 );
// Set the title size
rgb[Outline Box( 1 )][Text Box( 1 )] << set font size( 20 );
// Set axis font size
rgb[AxisBox( 2 )] << label row( set font size( 14 ) );
回复:在图形生成器中标准化图形这是非常必要的! 脚本没有帮助,因为它太麻烦了。 我需要一种简单的方法来创建多个相同尺寸的图形,而不必总是恢复到在窗口周围拖动
回复:在图形生成器中标准化图形虽然在创建图形后它不起作用,但在图形生成器首选项中您可以指定图形高度和图形宽度。 这将适用于 Graph Builder 创建的每个图形。
在图形生成器中标准化图形在创建图形后,是否可以对图形构建器中的图形进行标准化,涉及:
大小(例如 1200 x 900 像素)轴设置(字体大小)和标题(字体大小)
通过应用 JSL? 还有其他方法可以实现这一目标吗?
脚本编写