Origin Ver. and Service Release: 8.5.1 SR2
Operating System: Windows 7
Hello,
I have written a Labtalk script to change label positions of all graphs in an Origin project folder. The script looks like this:
doc -ef P
{
layer.unit = 5;
legend.top = (Layer.Top + (Layer.Height - legend.Height) - 15);
legend.left = (Layer.Left + (Layer.Width - legend.Width) - 15);
title.left = (Layer.Left + (Layer.Width - title.Width)/2);
title.top = (Layer.Top - (1.05 * title.Height));
yl.top = (Layer.Top + (Layer.Height - yl.Height)/2);
xb.left = (Layer.Left + (Layer.Width - xb.Width)/2);
};
Unfortunately, the script is not working correctly in the way, that only some of the graphs are formatted correctly and other not. Running the script at least several times solves the problem, because in each run, other graphs are formatted correctly, but this could not be the final solution.
Does anyone has the same problem and knows a solution?
Best regards,
Lars