嗨,大家好,
我在多個數據表的圖形生成器中有多個圖形。 注意兩點:
- 它們都是使用JSL創建的。
- 除最後一個窗口外,大多數都已附加到JMP窗口。
由於某種原因,我只能突出顯示最後一個圖形構建器繪圖上的數據(並在其表中選擇相應的行)。
為什麼會這樣,有什麼辦法可以解決?
謝謝。
您沒有提供足夠的信息(詳細信息)以真正允許任何實際的診斷。 腳本副本和輸出圖像確實有幫助
謝謝@txnelson和@Thierry_S為答复。
不幸的是,由於NDA的原因,我無法共享整個腳本或情節,但是我會盡可能提供更多詳細信息。
窗口如下所示:
CreateResultsWindow = Function(
// Inputs
{Title},
// Local variables
{
Window, ReturnList,
OutLineBox1, BorderBox1, LineUpBox1
},
Window = NewWindow(Title,
OutLineBox1 = OutLineBox(
"Outline Box 1",
BorderBox1 = BorderBox(
Left(40), Right(40), Top(40), Bottom(40), Sides(30),
LineUpBox1 = LineUpBox(NCol(2));
);
);
);
ReturnList = {};
InsertInto(ReturnList, OutLineBox1);
InsertInto(ReturnList, LineUpBox1);
EvalList ( ReturnList );
);
我針對多種類型的繪圖多次調用此函數,並像這樣將其附加到“陣容”框:
創建多個GB對象並將其插入GB列表
GB = DT << GraphBuilder(...);
InsertInto(GBList, GB);
AppendPlotBasedOnDescendingValue(GBList, R2List, LineUpBox1);
AppendPlotBasedOnDescendingValue = Function(
// Inputs
{PlotBoxList, ValueList, AppendBox},
// Local variables
{i, RankList, ReorderedPlotBoxList},
// Vector of indices used as subscript into original list
RankList = RankIndex(ValueList);
// Reorder plots based on values
ReorderedPlotBoxList = PlotBoxList[RankList];
// Plot by descending
For(i=NItems(ReorderedPlotBoxList), i>=1, i--,
AppendBox << Append(Report(ReorderedPlotBoxList[i]));
ReorderedPlotBoxList[i] << CLoseWindow;
);
);
它被正確附加,但是我無法選擇/突出顯示數據表/圖表。
謝謝。
你好@txnelson和@Thierry_S 。
謝謝回复。 由於某種原因,我先前的答復被標記為濫用,因此這裡是一個重寫:
不幸的是,由於NDA的原因,我無法共享整個腳本或情節,但我可以嘗試提供更多詳細信息:
我正在使用此功能創建窗口:
CreateResultsWindow = Function(
// Inputs
{Title},
// Local variables
{
Window, ReturnList,
OutLineBox1, BorderBox1, LineUpBox1
},
Window = NewWindow(Title,
OutLineBox1 = OutLineBox(
Title,
BorderBox1 = BorderBox(
Left(40), Right(40), Top(40), Bottom(40), Sides(30),
LineUpBox1 = LineUpBox(NCol(2));
);
);
);
ReturnList = {};
InsertInto(ReturnList, LineUpBox1);
EvalList ( ReturnList );
);
然後,我在for循環中創建Graph Builder對象,並將它們添加到列表中:
GB = GraphBuilder(...);
InsertInto(GBList, GB);
然後通過調用此函數將它們附加到窗口中的顯示對象(“陣容”框)上:
AppendPlotBasedOnDescendingValue = Function(
// Inputs
{PlotBoxList, ValueList, AppendBox},
// Local variables
{i, RankList, ReorderedPlotBoxList},
// Vector of indices used as subscript into original list
RankList = RankIndex(ValueList);
// Reorder plots based on values
ReorderedPlotBoxList = PlotBoxList[RankList];
// Plot by descending
For(i=NItems(ReorderedPlotBoxList), i>=1, i--,
AppendBox << Append(Report(ReorderedPlotBoxList[i]));
ReorderedPlotBoxList[i] << CLoseWindow;
);
);我使用圖形生成器列表和R ^ 2值列表來調用該函數。
AppendPlotBasedOnDescendingValue(GBList, R2List, LineupBox);
它可以工作,但是我無法選擇/突出顯示表/圖形構建器上的數據。
謝謝。