在图形生成器中标准化图形创建图形后,是否可以对图形生成器中的图形进行标准化,涉及:
- 大小(例如 1200 x 900 像素)
- 轴设置(字体大小)
- 和标题(字体大小)
通过应用 JSL? 还有其他方法可以实现这一目标吗?
大规模定制回复:在图形生成器中标准化图形虽然它在创建图形后不起作用,但在图形生成器首选项中您可以指定图形高度和图形宽度。 这将适用于图形生成器创建的每个图形。
回复:在图形生成器中标准化图形这是非常有必要的! 脚本没有什么帮助,因为它太麻烦了。 我需要一种简单的方法来创建多个相同尺寸的图形,而不必总是恢复到在窗口中拖动
回复:在图形生成器中标准化图形感谢您的快速回复。根据我的经验,传输在 Power Point 等中具有相似外观的 JMP 图表是很棘手的。
我是 JSL 的初学者。 因此,我希望有一个简单的解决方案,通过该解决方案,我能够标准化图形生成器中的当前图形,包括标题、轴和图形大小或格式(长度:宽度,例如 3:2),并克服不同的问题查看 Power Point 等。
回复:在图形生成器中标准化图形我提供的是适用于给定示例的代码。 它旨在展示您可以用来完成您想要的事情的方法。然而,由于图形生成器输出的可能性很大,对于替代图形,指向文本框()和轴框()的指针可能完全不同。您将需要检查不同的输出,然后将所需的代码移至脚本中。
回复:在图形生成器中标准化图形这么晚才回复很抱歉。 我确实尝试构建一个加载项或运行代码:
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 ) );