Navigation

  • index
  • next |
  • previous |
  • UniPlot Documentation »
  • UniScript Functions »
  • LayerGetAxisLink

LayerGetAxisLink¶

LayerGetAxisLink returns a vector with handles of linked diagrams.

hvLink = LayerGetAxisLink(hLayer, ssXY)

Return Value

hvLink is a vector with the handles of the linked diagram.

  • If hvLink has only one element and hvLink[1] is hLayer, then the axis of the hLayer diagram is not connected to any other axes in other diagrams.

  • If hvLink has more than one element, the first element is the handle of the diagram the given axis is linked to. The other handles belong to diagrams which share the same link. An axis is not linked if hvLink contains only one element.

  • In case of an error, hvLink has one element with the value 0.

Parameters

hLayer

Identifies the layer.

ssXY

ssXY is “X” for the x-axis and “Y” for the y-axis.

Example

hvL = LayerGetAxisLink(hLayer, "X");
if (len(hvL) != 1) {
        log_warning("", "Diagram", "Invalid X-Axis link: Link will be removed");
        LayerSetAxisLink(hLayer, "X", 0); // Remove link
}

See also

Overview Diagrams, LayerSetAxisLink, LayerSetLink, LayerCreate

id-1023857

Previous topic

LayerGetAxisLabelFormat

Next topic

LayerGetAxisLinkName

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • UniPlot Documentation »
  • UniScript Functions »
  • LayerGetAxisLink
© Copyright . Last updated on Jun 10, 2025. Created using Sphinx 7.3.7.