Transfer graphs between different experiment files
Transfer graphs completely (both data and graph it self) from one expriment to another, some like as the Save Graph package but far more convenient. One does not need to save the graph copy as a text file and not need to load it using the Load Igor Text menu item.
How to use:
1 Drag the TransferGraph.ipf to the current experiment file and compile it. A menu named "TransferGraph" is created with two menuitems: "SaveGraph" and "LoadGraph". Do the same thing to the target experiment file you want to transfer graphs to.
2 Make the graph you want to transfer to another experiment file as the top most window, then choose TransferGraph->SaveGraph menu item
3 In the target experiment file, choose TransferGraph->LoadGraph menu item
Note: before transfer, all data associated with the graph should be saved(experiment saved). Gizmo windows not supported.
Project Details
Current Project Release
Transfer graphs between different experiment files IGOR.7.00.x-1.0-0
Release File: | TransferGraph.ipf (2.54 KB) |
Version: | IGOR.7.00.x-1.0-0 |
Version Date: | |
Version Major: | 1 |
Version Patch Level: | 0 |
OS Compatibility: | Windows |
Release Notes: |
The first version |
Forum
Support
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More
Hi Jia, thanks for this nice project. I noticed that the loader (LoadGraph) does not work with liberal folder names (for example, folders with space characters). If you replace in line 65 this:
path=path[0,pos]
with this, it works:
path=ReplaceString("'",path[0,pos],"")
March 19, 2021 at 05:50 am - Permalink
I might also draw your attention to the Save Graph / Merge Experiment functionality:
DisplayHelpTopic "Save Graph Copy"
DisplayHelpTopic "Merging Experiments"
March 19, 2021 at 10:00 am - Permalink
Indeed, I did not know about the Merge feature (yet another keyboard shortcut which draws me deeper into the rabbit hole ;). But I have to say that I find the provided script here super convenient. This works with just two button presses and without creating any temporary files. It would be really nice if in a future Igor version the 'Browse Experiment' function could access graphs/layouts/tables etc. of the browsed experiments as well to draw them into the current experiment file. Or even better would be a copy-paste option just like it is now possible to copy-paste graph elements between different open experiments.
March 19, 2021 at 10:21 am - Permalink
Interesting. I had not thought to include the option to restore the graph in the SnapIt package. But I see that could be done as well.
Thanks!
March 19, 2021 at 01:37 pm - Permalink
A rewrite of this project can be found here:
https://www.wavemetrics.com/code-snippet/quick-graph-transfer-between-experiment-sessions
May 16, 2021 at 02:58 am - Permalink