The UserData object contains user-defined XY data. The UserData object has no constructor; it is created automatically when an Odb object is created.
import odbAccess session.odbs[name].userData
This method creates an XYData object from a sequence of X–Y data pairs.
session.odbs[name].userData.XYData
Required arguments
A String specifying the repository key.
A sequence of pairs of Floats specifying the X–Y data pairs.
Optional arguments
A String specifying the source of the X–Y data (e.g., “Entered from keyboard”, “Taken from ASCII file”, “Read from an ODB”, etc.). The default value is an empty string.
A String specifying the content of the X–Y data (e.g., “field 1 vs. field 2”). The default value is an empty string.
A String specifying additional information about the X–Y data (e.g., “for whole model”). The default value is an empty string.
A String specifying the label to be used in the legend. The default value is the name of the XYData object.
A String specifying the label for the X-values. This value may be overridden if the X–Y data are combined with other X–Y data. The default value is an empty string.
A String specifying the label for the Y-values. This value may be overridden if the X–Y data are combined with other X–Y data. The default value is an empty string.
A QuantityType object specifying the QuantityType object associated to the X -axis1- values.
A QuantityType object specifying the QuantityType object associated to the Y -axis2- values.
Return value
An XYData object.
Exceptions
InvalidNameError.
The UserData object can have the following members:
A String specifying the repository key.
A String specifying the source of the X–Y data (e.g., “Entered from keyboard”, “Taken from ASCII file”, “Read from an ODB”, etc.). The default value is an empty string.
A String specifying the content of the X–Y data (e.g., “field 1 vs. field 2”). The default value is an empty string.
A String specifying additional information about the X–Y data (e.g., “for whole model”). The default value is an empty string.
A String specifying the label for the X-values. This value may be overridden if the X–Y data are combined with other X–Y data. The default value is an empty string.
A String specifying the label for the Y-values. This value may be overridden if the X–Y data are combined with other X–Y data. The default value is an empty string.
A QuantityType object specifying the QuantityType object associated to the X -axis1- values.
A QuantityType object specifying the QuantityType object associated to the Y -axis2- values.
A String specifying the label to be used in the legend. The default value is the name of the XYData object.
A repository of XYData objects.
A repository of Annotation objects.
A tuple of pairs of Floats specifying the X–Y data pairs.