4Misc_Start2#4Platform@9VersionCheck xHH@Rg(HHdh xHH@Rg(HHdh x HH@Rg(HHdh ^Graph*xpWDashSettings#  !4 4 4 4 4 4 phome<<dhd:Old Stuff:2023:2023-03-04:RecentWindowsAnalysis.ihfDemoGraph:yData0 vs xData0;...DemoTable:xData0.d,yData0.d,xData1.d,yData1.d,dest0.xd,dest1.xdIgor Reference.ihfSubwindows.ihf 4Misc_End2#XOPState_Start2#SQL6420Stuff/2023/2023-03-04/VISA6420Scaling.ppXTest3-64%20Scaling.pxpXTestStructs64r Reference.ihfXTest7-64pxp0x0.ipfWaveRefTest-644XOPState_End2#V_Flag? •Demo() !hAlhFwy࠶y yData0 ????jW?h?Á>ϽA|uF0(?F}?2>mh&wy࠶y xData0 ????hk~?5?0B@Wx@ѝ@}@\@R?c?@>Ͻ|5F0h?K?)?chy࠶y xData1 ????>/<??@@.@@gͻ@d)@dAAHcXy࠶y2dest12 ףp= ????w>R>[?r-?RS?x??0?X?*??$[?k?d?xB?w" ?>e>A>0|w>|?:)?JQ?\Gn?n|?=K?_?r??+v?9?u?xX?:?HƁy࠶y2dest02 ףp= ????.=LR>>>o ?cD?%Y?\?`?=-d?gg?|R?&4?P? >J>!:=_Vd뾚&;EτNb`W;`iqeI l.ᆲ鸾{FԽg=9>>_>?$5?I?^?e>r?Zo?!R?y4?8?U>*// Platform=Macintosh, IGORVersion=9.010, architecture=Intel, systemTextEncoding="MacRoman", historyTextEncoding="UTF-8", procwinTextEncoding="UTF-8", recreationTextEncoding="UTF-8", build=39142 #pragma TextEncoding = "UTF-8" Silent 101 // use | as bitwise or -- not comment. DefaultFont "Helvetica" DemoTable() DemoGraph() MoveWindow/P 430,76,1212,786 MoveWindow/C 5,787,1212,1024 KillStrings/Z root:gWMSetNextTextFilesTextEncoding Window DemoGraph() : Graph PauseUpdate; Silent 1 // building window... Display /W=(19,45,917,624) yData0 vs xData0 AppendToGraph yData1 vs xData1 AppendToGraph dest0,dest1 ModifyGraph mode(yData0)=3,mode(yData1)=3,mode(dest0)=4,mode(dest1)=4 ModifyGraph marker(yData0)=19,marker(yData1)=19,marker(dest0)=10,marker(dest1)=10 ModifyGraph rgb(yData1)=(1,16019,65535),rgb(dest1)=(1,16019,65535) EndMacro Window DemoTable() : Table PauseUpdate; Silent 1 // building window... Edit/W=(34,311,839,737) xData0.y,yData0.y,xData1.y,yData1.y,dest0.xy,dest1.xy ModifyTable format(Point)=1 EndMacro #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 Function Demo() // Create input XY data Make/O/N=10 xData0 = p + gnoise(.1), yData0 = sin(x) Make/O/N=10 xData1 = p + gnoise(.1), yData1 = sin(x) + .25 // Display input XY data in table if (WinType("DemoTable") == 0) Edit/N=DemoTable xData0, yData0 AppendToTable/W=DemoTable xData1, yData1 endif // Display input data in graph if (WinType("DemoGraph") == 0) Display/N=DemoGraph/W=(19,45,917,624) yData0 vs xData0 AppendToGraph/W=DemoGraph yData1 vs xData1 ModifyGraph mode(yData0)=3,marker(yData0)=19 ModifyGraph mode(yData1)=3,marker(yData1)=19 ModifyGraph rgb(yData1)=(1,16019,65535) endif // Make destination waves and set their X scaling Make/O/N=50 dest0, dest1 SetScale x, 0, 9, "", dest0, dest1 AppendToTable/W=DemoTable dest0.id, dest1.id // Do interpolation using waveform output with X From Dest Interpolate2/T=1/Y=dest0/I=3 xData0,yData0 Interpolate2/T=1/Y=dest1/I=3 xData1,yData1 // Append output to graph CheckDisplayed/W=DemoGraph dest0 if (V_Flag == 0) AppendToGraph/W=DemoGraph dest0 ModifyGraph/W=DemoGraph mode(dest0)=4,marker(dest0)=10 endif CheckDisplayed/W=DemoGraph dest1 if (V_Flag == 0) AppendToGraph/W=DemoGraph dest1 ModifyGraph/W=DemoGraph rgb(dest1)=(1,16019,65535) ModifyGraph/W=DemoGraph mode(dest1)=4,marker(dest1)=10 endif End