Skip to content

Instantly share code, notes, and snippets.

@craigmccauley
Last active March 20, 2020 09:16
Show Gist options
  • Save craigmccauley/7324f74486942f87f3253e0386b7b3e8 to your computer and use it in GitHub Desktop.
Save craigmccauley/7324f74486942f87f3253e0386b7b3e8 to your computer and use it in GitHub Desktop.
////////////////////
//Runs plot profile and copies the first dataset
////////////////////
//clear buffer for working with
String.resetBuffer();
//get plot values
var profile = getProfile();
//build export string
var results = "";
for (var i = 0; i < profile.length; i++) {
results += toString(i) + "\t" + toString(profile[i]) + "\r\n";
}
//copy to clipboard
String.copy(results);
run("Open Next");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment