To shade only a portion of the area under a plot, you can use Integrate gadget’s “Keep the shading after closing the gadget” option. This can be done from Origin 2016 onward, although the pattern option won’t be customizable until the release of Origin 2016 SR1. In the above figure we see a line graph of some signal noise data which can be found in Origin’s sample files under <Origin EXE Folder>\Samples\Signal Processing. Let’s say we want to shade just the two sections of this graph with y values of approximately 2.
With Graph window active, let’s go to Gadgets: Integrate. First let’s set our region of interest (ROI) from approximately 295 to 355, and under the Integration tab check the tickbox labelled Keep the shading color after closing gadget.
Before we close this dialog box, we’ll need to define the lower boundaries of our integrated area. Since the minimum of our y axis is less than 0, let’s go to the Baseline tab, change the mode to Constant Y, and our Constant to Custom, in this case y= -1.
We can also shade a second area on our graph by adding another Integrate gadget with these same steps, but changing the ROI boundaries to 565 to 675.
The plot should appear as it does below. If we want to adjust the region of interest later, we can temporarily hide the gadgets by clicking on the red H that appears in the top right corner of the window for printing or graph export purposes. Then click the S to make it reappear. To close the gadgets, click the X button in the upper right corner.
Here we see our data without the Integrate gadget, showing the two sections of our data that we want shaded.
To change the appearance of a shaded area, first close the gadgets and then simply double click on the shaded area to open the Object Properties dialog. Go to the Fill Pattern tab to make modifications to fill color as well as pattern shading. We can also select each area as we would any other object and use the color and pattern buttons on Style toolbar to customize it.
If you want to remove a shaded area from our graph altogether, simply select it and press Delete.
Above we see our finished graph with our data partially shaded. This function can be used with any kind of data plot, highlighting whichever sections of the data that you wish to illustrate.