Hi Stephen,
Here is a possible workaround...
If all you want to do is show a second axis with a formula relating it to primary axis, you may not need a second layer and could do this by just turning on the secondary axis of the same layer and setting a formula.
Notes on how to do this can be found in this knowledge base item:
http://www.originlab.com/www/support/resultstech.aspx?ID=1116&language=English
Then, following method 1 outlines in that article, you could acheive that with code such as below, which will produce a graph such as pasted below. Note that with this method, the secondary y will have tick labels at same location as the primary y axis.
Easwar
OriginLab
void custom_formula()
{
GraphLayer gly = Project.ActiveLayer();
if( ! gly ) return;
gly.LT_execute("layer.y.showaxes = 3; layer.y.showlabels = 3;");
gly.LT_execute("layer.y2.label.formula$ = ""1.8*x"";");
}

Edited by - easwar on 07/19/2006 10:07:32 PM