有沒有人知道在使用地圖形狀時是否可以強制圖形產生器根據整個地圖屬性而不僅僅是您擁有的值來縮放圖形? 目前,如果您的資料中沒有最小-最大值,則即使使用「顯示缺失形狀」選項,縮放也只會使用您擁有的資料。
我知道我可以透過編寫腳本來實現這一點,至少透過檢查軸的最小-最大值(來自-XY 檔案)並將它們設定到圖表中,但我確實有數十個不同的地圖,這確實使腳本變得非常複雜。
非常快速地演示世界地圖的情況(我的情況是使用晶圓圖):
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/World Demographics.jmp");
dt << Select Where(:Territory == "United States");
dt << Invert Row Selection;
dt << Hide and Exclude(1);
gbExclude = dt << Graph Builder(
Size(534, 456),
Show Control Panel(0),
Variables(Shape(:Territory)),
Elements(Map Shapes(Legend(4),
Show Missing Shapes(1)))
);
gbExclude << title("I don't want always this"); repExclude = ReporT(gbExclude);
dt << Hide and Exclude(0);
gb = dt << Graph Builder(
Size(534, 456),
Show Control Panel(0),
Lock Scales(1),
Variables(Shape(:Territory)),
Elements(Map Shapes(Legend(4), Show Missing Shapes(1))),
SendToReport(
Dispatch(
{},
"",
ScaleBox,
{Format("Longitude DDD", "PUNDIR", 14, 0), Min(-180.310158563482),
Max(180.311408237786), Inc(50), Minor Ticks(0)}
),
Dispatch(
{},
"",
ScaleBox(2),
{Format("Latitude DDD", "PUNDIR", 14, 0), Min(-156.734601885074),
Max(144.680439023449), Inc(50), Minor Ticks(1)}
)
)
);
dt << Hide and Exclude(1);
gb << title("I want to be able to do this (with option)");
repGb = Report(gb);
nw = new window("",
v list box(
repExclude,
repGb
)
);
gbExclude << Close window;
gb << Close window;
nw << on close(close(dt, no save));