desdeo_emo.utilities.plotlyanimate
Module Contents
Functions
|
Plot the first (or zeroth) iteration of a population. |
|
Plot the next set of individuals in an animation. |
|
Initiate a 2D scatter animation. |
|
Plot the next set of individuals in a 2D scatter animation. |
|
Plot the first (or zeroth) iteration of a population. |
|
Plot the next set of individuals in an animation. |
|
Plot the first (or zeroth) iteration of a population. |
|
Plot the next set of individuals in an animation. |
|
|
|
- desdeo_emo.utilities.plotlyanimate.animate_init_(data: numpy.ndarray | pandas.DataFrame | list, filename: str) dict [source]
Plot the first (or zeroth) iteration of a population.
Intended as a frames object. Plots Scatter for 2D and 3D data. Plots parallel coordinate plot for higher dimensional data.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – Contains the data to be plotted. Each row is an individual’s objective values.
filename (str) – Contains the name of the file to which the plot is saved.
- Returns:
Plotly figure object
- Return type:
dict
- desdeo_emo.utilities.plotlyanimate.animate_next_(data: numpy.ndarray | pandas.DataFrame | list, figure: dict, filename: str, generation: int = None) dict [source]
Plot the next set of individuals in an animation.
Plots scatter for 2D and 3D data, parallel coordinate plot for 4D and up.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – The objective values to be plotted
figure (dict) – Plotly figure object compatible dict
filename (str) – Name of the file to which the plot is saved
generation (int) – Iteration Number
- Returns:
Plotly Figure Object
- Return type:
dict
- desdeo_emo.utilities.plotlyanimate.animate_2d_init_(data: numpy.ndarray | pandas.DataFrame | list, filename: str) dict [source]
Initiate a 2D scatter animation.
Only for 2D data.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – Objective values
filename (str) – Name of the file to which plot is saved
- Returns:
Plotly Figure Object
- Return type:
dict
- desdeo_emo.utilities.plotlyanimate.animate_2d_next_(data: numpy.ndarray | pandas.DataFrame | list, figure: dict, filename: str, generation: int) dict [source]
Plot the next set of individuals in a 2D scatter animation.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – The objective values to be plotted
figure (dict) – Plotly figure object compatible dict
filename (str) – Name of the file to which the plot is saved
generation (int) – Iteration Number
- Returns:
Plotly Figure Object
- Return type:
dict
- desdeo_emo.utilities.plotlyanimate.animate_3d_init_(data: numpy.ndarray | pandas.DataFrame | list, filename: str) dict [source]
Plot the first (or zeroth) iteration of a population.
Intended as a frames object. Plots Scatter 3D data.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – Contains the data to be plotted. Each row is an individual’s objective values.
filename (str) – Contains the name of the file to which the plot is saved.
- Returns:
Plotly figure object
- Return type:
dict
- desdeo_emo.utilities.plotlyanimate.animate_3d_next_(data: numpy.ndarray | pandas.DataFrame | list, figure: dict, filename: str, generation: int) dict [source]
Plot the next set of individuals in an animation.
Plots scatter for 3D data.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – The objective values to be plotted
figure (dict) – Plotly figure object compatible dict
filename (str) – Name of the file to which the plot is saved
generation (int) – Iteration Number
- Returns:
Plotly Figure Object
- Return type:
dict
- desdeo_emo.utilities.plotlyanimate.animate_parallel_coords_init_(data: numpy.ndarray | pandas.DataFrame | list, filename: str) dict [source]
Plot the first (or zeroth) iteration of a population.
Intended as a frames object. Plots parallel coordinate plot for >3D data.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – Contains the data to be plotted. Each row is an individual’s objective values.
filename (str) – Contains the name of the file to which the plot is saved.
- Returns:
Plotly figure object
- Return type:
dict
- desdeo_emo.utilities.plotlyanimate.animate_parallel_coords_next_(data: numpy.ndarray | pandas.DataFrame | list, figure: dict, filename: str, generation: int) dict [source]
Plot the next set of individuals in an animation.
Plots parallel coordinate plot for 4D and up.
- Parameters:
data (Union[np.ndarray, pd.DataFrame, list]) – The objective values to be plotted
figure (dict) – Plotly figure object compatible dict
filename (str) – Name of the file to which the plot is saved
generation (int) – Iteration Number
- Returns:
Plotly Figure Object
- Return type:
dict