Author |
Topic  |
|
feger
China
3 Posts |
Posted - 12/27/2024 : 1:22:39 PM
|
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2025 (64-bit) 10.2.0.188 Operating System:Windows 11 I created a new layer (right axis,same x-axis), but after plotting a new plot, the original layer's plot can no longer be seen. The layer order and background color are fine and trying to create other types of new layers does not solve the problem. |
|
WillMunson
USA
2 Posts |
Posted - 12/27/2024 : 1:49:54 PM
|
Hi feger,
Could you share your project with me on here? Let me take a look at what's going on.
Thanks, Will Munson. |
Edited by - WillMunson on 12/27/2024 2:26:57 PM |
 |
|
feger
China
3 Posts |
|
WillMunson
USA
2 Posts |
Posted - 12/30/2024 : 4:21:41 PM
|
Hi feger,
Thanks for sharing your project with me.
When plotting multiple Y columns with numeric X data, by default Origin treats the X data as text so columns can be evenly spaced. see https://www.originlab.com/doc/Quick-Help/Evenly-Space-ColBar.
E.g. if you look at your Graph2, the x axis is from 0.5 to 11.5 actually and tick label is Text from column A. Which means 2013 is treated as 1, 2013 is treated as 2, ...
While if you just plot line+symbol, the x axis will really be numeric from 2013 to 2023. That's why when you try to add layer and link them, the confusion starts.
For your case, it's better both layer1 and layer2's x is set to numeric. and straight 1:1. 1. in Graph3, open Axis dialog. Set Layer no. to 1 at bottom of the dialog. 2. Go to Tick Labels, check Show checkbox and Set type to Numeric. 3. Select Layer2 at the bottom of the dialog. Go to Tick Labels and set Type to Numeric as well. 4. Go to Object Manager on right side of workspace. Right click RightY and choose Bring Foward context menu so scatter plot is top of bars. (Origin plot layer1 first and layer2 on top of layer1)
For the future, I would recommend following this process:
1. Plot the data from Sheet1. 2. Change the x-axis to numeric, instead of text. 3. Create a second layer, and set this layer as Straight (1 to 1) in the Layer Properties dialog. 4. Add the data from Sheet2 to the 2nd layer.
Hope this helps.
Thanks, Will Munson. |
 |
|
|
Topic  |
|
|
|