Is there a simple way to recreate a graph in another igor package file?

Hi,

I have many figures in one igor package, and I usually want to recreate one same figure in the other igor package. It's easy to copy the data from the first igor file to the second one, but it would take much time to recreate the figure by setting new axis, modifying the color scale ect..

Is there a simple way to recreate the figure in another igor package? I know there is an easy way by copying the command history and re-executing in another igor package, but sometimes it's hard to find the history in the history window. Or is there a simple way to save the full history of the creating and modifying a figure?

Thanks,
Wentao
WTZero wrote:
Is there a simple way to recreate the figure in another igor package? I know there is an easy way by copying the command history and re-executing in another igor package, but sometimes it's hard to find the history in the history window. Or is there a simple way to save the full history of the creating and modifying a figure?


Perhaps you would be helped by using the SnapIt package for this.

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
Quote:
Is there a simple way to recreate the figure in another igor package? I know there is an easy way by copying the command history and re-executing in another igor package, but sometimes it's hard to find the history in the history window. Or is there a simple way to save the full history of the creating and modifying a figure?


You can save a graph and its data to a separate experiment file and then merge that experiment file into a third experiment.

Execute these commands for the relevant help:
DisplayHelpTopic "Save Graph Copy"
DisplayHelpTopic "Merging Experiments"

I have a related question that I guess belongs in this thread.

I would like to share graphs and data between co-workers also using Igor.
There are a couple of problems associated with this:
Each of us might have slightly different versions of igor installed, 6.1 vs 6.2 for example.
Also each of us have different packages, ipf's and/or hooks that try to load on startup.

The problem is that when I save an experiment (usually .pxp) and my coworker tries to open it, there is an endless barrage of errors saying that it cannot load whatever package or find whatever file.
This makes simple file sharing between igor users much harder than it should be.
I am not talking about trying to reanalyze data but simply opening an experiment to look at a graph and maybe make some small modifications.

Is there a way of saving all the graphs and associated waves in an experiment in such a way that would avoid these issues?

Quote:
Is there a way of saving all the graphs and associated waves in an experiment in such a way that would avoid these issues?


I'd have to know exactly what errors you are getting to give a complete answer. Different types of errors have different solutions.

If you use Save Graph Copy as explained below, the resulting experiment will not reference any procedure files so you should not get a any errors relating to procedure files, unless, for example, your graphs contain annotations or dependency formulas that reference functions in procedure files. This is a good reason to avoid dynamic text in annotations and dependency formulas.

If you are using standalone waves, as opposed to packed waves, that is an issue. To understand this issue, execute:
DisplayHelpTopic "Sharing Versus Copying Igor Binary Files"


To find the right solution for your situation you need to know more. Execute this and read the entire topic:
DisplayHelpTopic "Experiments, Files and Folders"

hrodstein wrote:
Quote:
Is there a simple way to recreate the figure in another igor package? I know there is an easy way by copying the command history and re-executing in another igor package, but sometimes it's hard to find the history in the history window. Or is there a simple way to save the full history of the creating and modifying a figure?


You can save a graph and its data to a separate experiment file and then merge that experiment file into a third experiment.

Execute these commands for the relevant help:
DisplayHelpTopic "Save Graph Copy"
DisplayHelpTopic "Merging Experiments"

That's very helpful!

Thanks,
jjweimer wrote:
WTZero wrote:
Is there a simple way to recreate the figure in another igor package? I know there is an easy way by copying the command history and re-executing in another igor package, but sometimes it's hard to find the history in the history window. Or is there a simple way to save the full history of the creating and modifying a figure?


Perhaps you would be helped by using the SnapIt package for this.

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville


Amazing package!

Thanks