T O P I C R E V I E W |
tom3m |
Posted - 01/31/2002 : 09:59:20 AM I have written a labtalk script to plot data from an arbitrary number of input files in known format in 4 layers on one graph page. This script is used frequently to do this, but since the exact data, number of files, exact data description, etc. changes each time the data is plotted, we have to adjust the style, legend, etc. to make a good visualization of the data. I would like to be able to copy the general style set up in the first layer to the other three layers in the graph page without copying the data plotted in the first layer (someone recently posted a method to copy the data + style - I just want to copy the style). Is there a simple way to do this in a script?
Thanks!
|
2 L A T E S T R E P L I E S (Newest First) |
tom3m |
Posted - 02/07/2002 : 4:16:21 PM I don't think your template solution will work for us since each time we create a 4 layer plot, the style might be different. For example, the first time I make the 4 layer plot I might want to alternate the color of every line in the plot from blue to red. The second time I make the 4 layer plot, I might want to color the first 2 lines in each plot red, the next 3 blue, the next 5 green, and the next 2 cyan. I also might want to change the symbol types, etc.
Right now the script makes the 4 layer plot with nicely formatted axes, labels, etc., but it is up to the user to change the style to fit how they wish to visualize their data. It would further speed up the plotting process if the user could set the style for the first layer and then copy it to the other 3 layers without changing the data plotted in the other 3 layers.
Thanks! |
Laurie |
Posted - 02/05/2002 : 4:24:31 PM Layer -ic copies the style and the data. For what you're looking for, you should create a 4 layer template and then your script should use this. Templates remember plot style information.
OriginLab Technical Support |
|
|