#pragma TextEncoding = "UTF-8" #pragma rtGlobals=3 // Use modern global access method and strict wave access #pragma DefaultTab={3,20,4} // Set default tab width in Igor Pro 9 and later #pragma version = 1.0 // written by https://www.wavemetrics.com/user/chozo // quickly transfer the top graph between experiments // original idea from the Transfer Graphs project by user wings: // https://www.wavemetrics.com/project/TransferGrpahs Menu "Windows" "Save Top Graph",/Q, SaveTopGraph() "Load Saved Graph",/Q, LoadSavedGraph() End Function SaveTopGraph() String expName = IgorInfo(12) if (!strlen(expName)) Abort "You need to save the experiment before using this functionality." endif PathInfo home String saveRec = "TransferGraph@"+S_Path+expName+"@"+WinName(0,1)+"@" GetWindow kwTopWin, wavelist Variable i Wave/T wList=W_WaveList for (i=0; i