
Chapter II-12 — Graphs
II-255
Grouping, Stacking and Adding Modes
For the four modes that normally draw to y=0 (“Sticks to zero”, “Bars”, “Fill to zero”, and “Sticks and markers”)
you can choose variants that draw to the Y values of the next trace. The four variant modes are: “Sticks to next”,
“Bars to next”, “Fill to next” and “Sticks&markers to next”. Next in this context refers to the trace listed after
(below) the selected trace in the list of traces in the Modify Trace Appearance and the Reorder Traces dialogs.
If you choose one of these four modes, Igor automatically selects “Draw to next” from the Grouping pop-
up menu. You can also choose “Add to next” and “Stack on next” modes.
The Grouping pop-up menu is used to create special effects such as layer graphs and
stacked bar charts. “Keep with next” is used only with category plots and is described in
Chapter II-13, Category Plots.
“Draw to next” modifies the action of those modes that normally draw to y=0 so that they
draw to the Y values of the next trace that is plotted against the same pair of axes as the current trace. The
X values for the next trace should be the same as the X values for the current trace. If not, the next trace will
not line up with the bottom of the current trace.
“Add to next” adds the Y values of the current trace to the Y values of the next trace before plotting. If the
next trace is also using “Add to next” then that addition is performed first and so on. When used with one
of the four modes that normally draw to y=0, this mode also acts like “Draw to next”.
“Stack on next” works just like “Add to next” except Y values are not allowed to backtrack. On other words,
negative values act like zero when the Y value of the next trace is positive and positive values act like zero
with a negative next trace.
Here is a normal plot of a small sine wave and a bigger sine wave:
In this version, the small sine wave is set to “Add to next” mode:
1.0
0.5
0.0
-0.5
-1.0
120100806040200
1.0
0.5
0.0
-0.5
-1.0
120100806040200
Komentáře k této Příručce