
Contents |
Update Legend
Update or reconstruct legend on the graph page/layer
legendupdate dest:=layer update:=reconstruct legend:=combine order:=ascend mode:=lu
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Destination | dest |
Input int | | Specifies where to apply the legend updates.
Option list:
|
| Update Mode | update |
Input int | | Specifies whether to reconstruct or update the legend.
Option list:
|
| Legend | legend |
Input int | | This is only available when reconstruct is selected for the update variable. Use this variable to specify the type of legend you want to reconstruct.
Option list:
|
| Order | order |
Input int | | This is only available when reconstruct is selected for the update variable. When a legend is reconstructed, information must be read from the graph layers. This variable controls the order to read the layers.
Option list:
|
| Auto Legend Translation Mode | mode |
Input int | | LabTalk variable notations ("%(1)", "%(2)", etc.) is used to create legends. Origin automatically "translate" the notations into information when constructing a legend. This variable specifies the information that will be used to translate the notations.
Option list:
|
| Legend Custom Format(@D,@LU etc) | custom |
Input string | | This is available only when custom is selected for the mode variable. Notation entered here will be used to translate the legend notations. |
| GraphPage | page |
Input GraphPage | | This is only available when dest variable is set to spepage. Use it to specify a graph page. Then the legend(s) on the graph page will be updated. |
| GraphLayer | layer |
Input GraphLayer | | This is only available when dest variable is set to spelayer. Use it to specify a graph layer. Then the legend on the graph layer will be updated. |
This X-function can be used to update or reconstruct legends on graphs or layers.
For more examples, please refer to XF Script Dialog (press F11).