如果 JMP 還可能的話,沒有收到任何想法(缺少部分數據時縮放地圖形狀軸) 所以我正在向願望清單提出建議:
在使用地圖形狀時添加新選項,以允許基於地圖文件中找到的完整地圖形狀進行縮放。 目前,即使您選擇 Show Missing Shapes,圖形也不會縮放以顯示整個地圖。 最可能的最佳選擇是添加額外的選項,而不是通過顯示缺失的形狀來強制它。
當缺少部分數據時,添加與縮放地圖形狀軸相同的示例。 當除一個值之外的所有值都被隱藏和排除時,第一個圖形具有地圖,在第二個圖形中,首先創建地圖,然後鎖定軸以強制縮放,然後排除數據:
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));