T O P I C R E V I E W |
nexusnex |
Posted - 04/14/2023 : 09:44:36 AM OriginPro 2021b (64-bit) SR2 9.8.5.212 (Government) Operating system Windows 10
Hey everyone,
I've come across a possible bug and I can't find a solution to this. Background: I have several peaks that were deconvoluted to their respective curves and now I want to fill the area under the curves. So here you see the curve (red line) without the area under the curve:
 so far so good. However, when I click "fill area under curve" and select "fill to next data plot - one color"
 it will not fully fill the area under the curve that I've selected but instead also fill the area of another curve which I haven't selected yet. This additional "ghost area" is part of another deconvoluted peak. Interestingly, the overlap between those two areas is left blank. Do you have any suggestions for this? I don't know how to address this problem and would appreciate your help.
Thank you so much in advance.
|
10 L A T E S T R E P L I E S (Newest First) |
nexusnex |
Posted - 04/14/2023 : 11:24:17 AM quote: Originally posted by snowli
You don't need to create duplicate columns in worksheet.
If u only need to fill one curve to the background. On right side Object Manager, u can drag the Background plot downward and put it right after the red curve.
But if u want to fill multiple plots to the same background. In your version, u can double click 1 icon to open Layer Contents dialog. The right side shows the plots in graph and their order. U can move current J below the C.
Then select more J on left side and move it to right side to add duplicate plots in graph. They are all added to bottom of the list. Move each below the corresponding plots.
Then go to Plot Details to set fill area under curve, next plot for each plot u want to fill to it.
It will be much easier in newer version. U can check if you have valid maintenance to upgrade to 2022.
Thanks, Snow
quote: Originally posted by nexusnex
Yes, I would like to fill it to column J "background".
I understand that in my current Origin version it will choose the next plot to fill to no matter what, so am I correct in order to address this problem that I have to duplicate the background column and put it after every plot?
This works! Much easier than creating duplicate columns in the worksheet :) Thanks a lot again and yes, I will check if I can update to 2022. |
snowli |
Posted - 04/14/2023 : 10:57:53 AM See my previous reply.
And yes, using additional line as base will leave the back line there. That's why we improved in 2022 so user can choose Fill to Base and set baseline Y=0 directly in Plot Details. It will fill to the line but not showing the baseline. Thanks, Snow
quote: Originally posted by nexusnex
quote: Originally posted by snowli
Could you let me know where you want to fill the area to? y=0?
If so, under Enable, u can choose Fill to Base.
Then go to Axis db. Go to Grids tab. Choose Vertical. Then check y= in Additional Lines. Enter the y value there. that's the base for filling area or column/bar.
Thanks, Snow
I've done that but this leaves me with a horizontal line that I cannot edit/remove/make transparent (maybe you can fix this in later versions?). Also in my case the base line is not perfectly horizontal but is the background with various variations. If I had the option to plot a line between two points and set it as the base that would also be sufficient.
Thanks ;)
EDIT: it seems like in order to circumvent the problem in origin 2021, I really have to manually add additional columns/plots and put them after each plot I want it to fill to. As you said: "Fill to data plot to Next Plot" will fill from current plot to the next plot after it in the plot list even if the next plot isn't checked." It seems tedious but well that's how it is :)
In any case thanks a lot!
|
snowli |
Posted - 04/14/2023 : 10:52:09 AM You don't need to create duplicate columns in worksheet.
If u only need to fill one curve to the background. On right side Object Manager, u can drag the Background plot downward and put it right after the red curve.
But if u want to fill multiple plots to the same background. In your version, u can double click 1 icon to open Layer Contents dialog. The right side shows the plots in graph and their order. U can move current J below the C.
Then select more J on left side and move it to right side to add duplicate plots in graph. They are all added to bottom of the list. Move each below the corresponding plots.
Then go to Plot Details to set fill area under curve, next plot for each plot u want to fill to it.
It will be much easier in newer version. U can check if you have valid maintenance to upgrade to 2022.
Thanks, Snow
quote: Originally posted by nexusnex
Yes, I would like to fill it to column J "background".
I understand that in my current Origin version it will choose the next plot to fill to no matter what, so am I correct in order to address this problem that I have to duplicate the background column and put it after every plot?
|
nexusnex |
Posted - 04/14/2023 : 10:31:07 AM quote: Originally posted by snowli
Could you let me know where you want to fill the area to? y=0?
If so, under Enable, u can choose Fill to Base.
Then go to Axis db. Go to Grids tab. Choose Vertical. Then check y= in Additional Lines. Enter the y value there. that's the base for filling area or column/bar.
Thanks, Snow
I've done that but this leaves me with a horizontal line that I cannot edit/remove/make transparent (maybe you can fix this in later versions?). Also in my case the base line is not perfectly horizontal but is the background with various variations. If I had the option to plot a line between two points and set it as the base that would also be sufficient.
Thanks ;)
EDIT: it seems like in order to circumvent the problem in origin 2021, I really have to manually add additional columns/plots and put them after each plot I want it to fill to. As you said: "Fill to data plot to Next Plot" will fill from current plot to the next plot after it in the plot list even if the next plot isn't checked." It seems tedious but well that's how it is :)
In any case thanks a lot! |
nexusnex |
Posted - 04/14/2023 : 10:27:31 AM Yes, I would like to fill it to column J "background".
I understand that in my current Origin version it will choose the next plot to fill to no matter what, so am I correct in order to address this problem that I have to duplicate the background column and put it after every plot? |
snowli |
Posted - 04/14/2023 : 10:21:43 AM Could you let me know where you want to fill the area to? y=0?
If so, under Enable, u can choose Fill to Base.
Then go to Axis db. Go to Grids tab. Choose Vertical. Then check y= in Additional Lines. Enter the y value there. that's the base for filling area or column/bar.
Thanks, Snow
|
nexusnex |
Posted - 04/14/2023 : 10:11:29 AM Oh thanks for the swift reply. I understand what I should do but I'm still on version 2021, so can I circumvent this problem there too?
Thanks! |
snowli |
Posted - 04/14/2023 : 10:06:06 AM "Fill to data plot to Next Plot" will fill from current plot to the next plot after it in the plot list even if the next plot isn't checked.

So u may need to change the plot order. Or specify fill to base to fill to bottom axis.
Since Origin 2022, we allow user to * specify the plot instead of Next Plot,

* fill to any specified horizontal line or vertical line, or left, y axis, etc. etc.

See https://www.youtube.com/watch?v=KynUKbLjr1Y&t=11s for
Thanks, Snow
|
nexusnex |
Posted - 04/14/2023 : 09:52:37 AM quote: Originally posted by snowli
Could you share the opju so we can check?
Thanks, Snow
Hello, yes of course here you go https://my.originlab.com/ftp/forum_and_kbase/Images/XPS%20data1.opju Thanks in advance |
snowli |
Posted - 04/14/2023 : 09:48:09 AM Could you share the opju so we can check?
Thanks, Snow |