.. highlightlang:: us .. _tysetdata: TYSetData ========= .. index:: TYSetData .. us.tag TYSetData NOTREADYENGLISH ty.data New400 Changed530 Changed590 :ref:`TYSetData` sets the coordinates of a y/t datasets (1D-dataset). .. function:: bool = TYSetData(hData) bool = TYSetData(hData, rvY) bool = TYSetData(hData, rvY, bExt) .. us.return **Return Value** *bool*. .. us.params **Parameters** .. uparam:: hData The handle of a dataset created with :ref:`TYCreate`. .. uparam:: rvY *rvY* is a vector with y coordinates. Teh vector must have at least one element. .. uparam:: bExt This parameter specifies if the function will access the original data or the filtered data. .. list-table:: :header-rows: 1 * - Value - Description * - -1 - If filtered data is available it will access filtered data, otherwise it will access original data. Default value is -1. * - 0 - Access original data. * - 1 - Access filtered data. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.9.0 - ``TYSetData(hData, 1e10, TRUE)`` removes the filtered data. * - 5.3.0 - Invoked without the data parameter the function removes all data. .. seealso:: :ref:`overview-xy-datasets`, :ref:`TYCreate`, :ref:`TYAddData`, :ref:`TYSetMinAndDelta`, :ref:`TYGetMinAndDelta`, :ref:`XYIsTYDataset` :sub:`id-1481419`