pingwyn.append
- pingwyn.append(obj, *args, curve_offset=True)
Append or extend objects with more data.
- Parameters:
obj (pingwyn.Curve or pingwyn.Grid or pingwin.Image or pingwyn.Profile) – Pingwyn object add more data onto. The type and metadata of this object will be transferred onto the result.
*args (Same type as obj) – The additional data that needs to be appended onto obj.
curve_offset (bool) – Applies only to pingwyn.Curve objects. If True, the x-axis of each curve will be shifted such that they extend instead of overlap. I.e., if three curves run from 0 to 1, the resulting curve will run from 0 to 3. Default: True.
- Returns:
A new object that contains the data of obj combined with the data provided as additional arguments. The data will be appended along axis 0 for Profiles (i.e. along the profile direction), and along axis 1 for Curves (i.e. more data points in the curve), Grids (i.e. horizontally) and Images (i.e. horizontally).
- Return type:
pingwyn.Curve or pingwyn.Grid or pingwin.Image or pingwyn.Profile