Author |
Topic |
|
shrivastava
Albania
Posts |
Posted - 08/10/2005 : 11:34:53 PM
|
Origin Version (Select Help-->About Origin): 7 Operating System:Windows Xp
I am trying to show two sets of data on the same plot. The X axis is the same. Y values of the two data sets are a constant ratio of each other. I wish to have two Y axes on the same plot (primary and secondary) with a single set of data points. Thus values on primary Y axis would correspond to first data set, while those on secondary Y axis would correspond to second dataset. But I wish to have just one set of data points read differently on the two Yaxes.
can this be done in Origin?
please suggest how best to achieve this.
thanks manish |
|
Mike
USA
357 Posts |
|
shrivastava
Albania
Posts |
Posted - 08/11/2005 : 12:14:41 PM
|
hi Mike
This is helpful. But what I am trying to do is not have different data points for the 2 different Y axes. Thus my child Y axis should be:
Child Y axis = Parent Y axis * 12.53918
I could set the upper and lower limits of both axes according to this relation. Thus I wish one set of data points read differently on the two Y-axes.
Currently I am trying to link them by going to Link Axes- Using straight one to one for X axis, custom for Y axis and Y2=Y1*12.53918.
But this doesnt seem to work, as when I change the scale of parent, the child Y scale changes in a 1 to 1 fashion which is not what I want. I have many different plots on the same figure but I want the right Y axes to be 12.53918 times the left Y axis always. This will help me to read the same plot differently on the two Y-axes.
please suggest accordingly thanks manish |
|
|
Mike Buess
USA
3037 Posts |
Posted - 08/11/2005 : 12:29:45 PM
|
Hi Manish,
You want a single layer with left and right Y axes whose scales differ by a constant factor? That can be done entirely in the axes formatting dialog...
1. Format > Axis Tick Labels > Y Axis Tick Labels 2. Select right axis on list at the left. 3. Check Show Major Labels. 4. Enter 1/12.53918 as Divide by Factor. 5. Click the Title & Format tab. 6. Check Show Axis & Ticks. 7. Click OK.
Mike Buess Origin WebRing Member |
|
|
Mike
USA
357 Posts |
Posted - 08/11/2005 : 2:55:41 PM
|
Hi Manish:
I think Mike Buess' solution will work for you but because you brought up the Custom Link between layers, I wanted to point out that the Origin 7 Help file had an error in the example that was supposed to explain this concept. So, here is what the Help file should have said:
Example: Creating a Custom Link Between Temperature Scales The custom link option on the Link Axes Scales tab of the child layer's Plot Details dialog box is particularly useful if you want to display the same data plot on two scales, such as Celsius and Fahrenheit.
1. Create the following worksheet:
A(X) B(Y) 25 1.1 35 1.6 45 2.4 55 2.8 65 3.4 75 4.1
2. Highlight the B(Y) column and click the Scatter button on the 2D Graphs toolbar.
3. Double-click on the X axis title (graph window) to enter the text editing mode and overtype X Axis Title with Centigrade.
4. Click OK to close the dialog box.
5. Select Tools:Layer to open the Layer tool.
6. Click the Add tab and select the Linked Top X button to add a linked layer (Layer 2) displaying a top X axis.
7. Double-click on the top X axis to open the X Axis - Layer 2 dialog box. Select the Title & Format tab. Type Fahrenheit in the Title text box.
8. Click OK to close the dialog box.
9. Press CTRL while double-clicking on the graph window's layer 2 icon (in the upper left corner of your graph window). This action opens the Plot Details dialog box for layer 2.
10. Select the Link Axes Scales tab. In the X Axis Link group, select the Custom radio button and type the following expressions in the text boxes:
X1 = (X1*1.8)+32 X2 = (X2*1.8)+32
Origin recognizes X1 and X2 as LabTalk system variables for the From and To axis scale values, respectively. So these expressions say, in effect...
"Take the From axis scale value of layer 1, multiply it by 1.8, add 32 and use the resulting value for the From axis value of layer 2. Take the To axis scale value of layer 1, multiply it by 1.8, add 32 and use the resulting value for the To axis value of layer 2."
11. Click OK to close the Plot Details dialog box. |
|
|
|
Topic |
|