query_xy_update#

ensight.query_xy_update(id: int, data: List[List[float]], segments: list | None = None) int#

Update the data values in a query

Update the data values of a “file” XY query.

Args:
id:

The INDEX attribute for the ENS_QUERY object to be updated.

data:

A list of XY list values.

segments:

This is an array of point counts. After every count point, there will be a “break” in the plotted query line.

Returns:

The query index id that was updated or a negative number on an error.

Example:
data = [[1, 1], [2, 4], [3, 9]]
qidx = ensight.query_xy_create("New Data", "X Axis", "Y Axis", data)
query_object = max(ensight.objs.core.QUERIES)
data = [[1, 0.5], [2, 3.5], [3, 8.5], [4, 15.5]]
err = ensight.query_xy_create(query_object.INDEX, data)