hypertools.
DataGeometry
(fig=None, ax=None, line_ani=None, data=None, xform_data=None, reduce=None, align=None, normalize=None, kwargs=None, version='0.4.0')[source]¶Hypertools data object class
A DataGeometry object contains the data, figure handles and transform functions used to create a plot. Note: this class should not be called directly, but is used by the hyp.plot function to create a plot object.
Parameters: | fig : matplotlib.Figure
ax : matplotlib.Axes
line_ani : matplotlib.animation.FuncAnimation
data : list
xform_data : list
reduce : dict
align : dict
normalize : str
kwargs : dict
version : str
|
---|
Methods
plot ([data]) |
Plot the data |
save (fname[, compression]) |
Save method for the data geometry object |
transform ([data]) |
Return transformed data, or transform new data using the same model |
plot
(data=None, **kwargs)[source]¶Plot the data
Parameters: | data : numpy array, pandas dataframe or list of arrays/dfs
kwargs : keyword arguments
|
---|---|
Returns: | geo : hypertools.DataGeometry
|
save
(fname, compression='blosc')[source]¶Save method for the data geometry object
The data will be saved as a ‘geo’ file, which is a dictionary containing the elements of a data geometry object saved in the hd5 format using deepdish.
Parameters: | fname : str
compression : str
|
---|
transform
(data=None)[source]¶Return transformed data, or transform new data using the same model parameters
Parameters: | data : numpy array, pandas dataframe or list of arrays/dfs
|
---|---|
Returns: | xformed_data : list of numpy arrays
|