Origin has a layer level option linking axis length to its scale so that axis will have the same unit length. This post will help you to go one step further, because in categorical data, we only want to link one of the axis (Y axis) to its scale, while keep X as it is for it’s just categories.
If you want to walk through the steps with me, please download this sample data.
The raw data shows as below:
Highlight all four columns and plot a column graph. You can finish most of the customization since Origin’s batch plotting can duplicate the graph with new data. Here are some important changes that you need to make:
- Open the Axis Dialog for Y axis and set its Rescale mode to Auto.so that when new data be used, the Y axis range can be adjusted accordingly.
- Hide the X axis tick and labels because only one of the three graphs needs it.
- Right click in white area and choose Add/Modify Layer Title and enter %(1Y, @WS). Right click it and choose Programming Control…. Set Link to (%,$), Substitution Level to 1. This will convert the subsitution notation %(1Y, @WS) into sheet name.
- In Plot Details dialog, choose Layer1 on left panel, go to Display tab and change Scale Elements to be Fixed Factor with value 1 so that everything will not be scaled with layer size changing.
- Right click graph window title and select Duplicate (Batch Plotting) : Duplicate with New Sheets/Books. Select the other two sheets and click OK.
- Update the color for the duplicated graphs first since they uses the same color setting as the first one.
- Go to menu Graph: Merge Graph Windows and set it as a 3*1 layout. Check Set Layer Height by Common Scale checkbox so that each layer height will adjust proportionally based on the range of axis.
- Click OK and you will have a new graph window just like the preview.
- However, form the preview we see that the Test-1 layer is on the top instead of bottom. That’s because this tool be default place the graphs based on the list in Graphs. Change the Merge drag-down to be Specified so that the list can be editable. Or in the graph already made, choose Graph: Layer Management menu.Go to Size/Position tab to swap layer1 and layer3. Please make sure click Apply button on the tab before clicking OK button to close the dialog.
10. Turn the X axis tick and label back on the bottom axis.You will got your graph as below:
You can look at the expected graph under Result folder in the opj you downloaded.