origin_plot
Plot worksheet columns into a graph layer and return the graph and layer handles, enabling multi-panel figure creation. Supports line, scatter, column, bar, area, box, histogram, and custom plot types.
Instructions
Plot worksheet columns into a graph layer, and return the graph and layer.
Without graph this makes a new graph page. Give graph to add another
panel to one that already exists -- that is how a multi-panel figure is
built, one call per panel, then origin_layers_arrange.
plot_type is a name (line, scatter, column, bar, area, box,
histogram, stack_column, ...) or any Origin plot-type id as a number,
so an unusual chart is never blocked by the name list.
Columns are given as zero-based indexes or Origin short names. Several y
columns go into the same layer, grouped unless group is false.
Use the returned graph and layer for everything afterwards. Origin
chooses the name, and the new layer is not the active one, so neither can
be assumed. plots_in_layer is read back from Origin rather than counted
from the request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| book | Yes | ||
| graph | No | ||
| group | No | ||
| sheet | No | Sheet1 | |
| plot_type | No | line |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||