// This macro demonstrates how to use the Array.show() // macro function that was added in ImageJ 1.48d. requires("1.48d"); saveSettings; array1 = newArray(1.2, 2.33, 3.444, 4.5555); array2 = newArray("cat", "dog", "gerbil"); // show one array Array.show(array1); wait(2000); // show two arrays Array.show(array1, array2); wait(2000); // show two arrays with custom title Array.show("Two Arrays", array1, array2); wait(2000); // show two arrays with custom title and Index column Array.show("Two Arrays (indexes)", array1, array2); wait(2000); // show two arrays in "Results" window with row numbers Array.show("Results (row numbers)", array1, array2); wait(2000); // show array1 using 8 decimal places call("ij.plugin.filter.Analyzer.setPrecision", 8); Array.show(array1); restoreSettings;