沒有收到任何關於 JMP 是否可以實現這一點的想法(遺失部分資料時縮放地圖形狀軸)所以我正在為願望清單創建建議:
使用地圖形狀時新增選項,以允許根據地圖檔案中找到的完整地圖形狀進行縮放。 目前,即使您選擇“顯示缺少的形狀”,圖表也不會縮放以顯示整個地圖。 最有可能的最佳選擇是添加額外的選項,而不是使用“顯示缺少的形狀”來強制它。
當缺少部分資料時,新增與縮放地圖形狀軸中相同的範例。 當除了一個值之外的所有值都被隱藏和排除時,第一個圖形具有地圖,在第二個圖形中,首先創建地圖,然後鎖定軸以強制縮放,然後排除資料:
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));
我剛剛遇到了這個問題。 @jthi建議的修復會很棒。