desdeo_emo.utilities.plotlyanimate

Module Contents

Functions

animate_init_(data: Union[numpy.ndarray, pandas.DataFrame, list], filename: str) → dict

Plot the first (or zeroth) iteration of a population.

animate_next_(data: Union[numpy.ndarray, pandas.DataFrame, list], figure: dict, filename: str, generation: int = None) → dict

Plot the next set of individuals in an animation.

animate_2d_init_(data: Union[numpy.ndarray, pandas.DataFrame, list], filename: str) → dict

Initiate a 2D scatter animation.

animate_2d_next_(data: Union[numpy.ndarray, pandas.DataFrame, list], figure: dict, filename: str, generation: int) → dict

Plot the next set of individuals in a 2D scatter animation.

animate_3d_init_(data: Union[numpy.ndarray, pandas.DataFrame, list], filename: str) → dict

Plot the first (or zeroth) iteration of a population.

animate_3d_next_(data: Union[numpy.ndarray, pandas.DataFrame, list], figure: dict, filename: str, generation: int) → dict

Plot the next set of individuals in an animation.

animate_parallel_coords_init_(data: Union[numpy.ndarray, pandas.DataFrame, list], filename: str) → dict

Plot the first (or zeroth) iteration of a population.

animate_parallel_coords_next_(data: Union[numpy.ndarray, pandas.DataFrame, list], figure: dict, filename: str, generation: int) → dict

Plot the next set of individuals in an animation.

test()

test2()

desdeo_emo.utilities.plotlyanimate.animate_init_(data: Union[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: Union[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: Union[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: Union[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: Union[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: Union[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: Union[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: Union[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

desdeo_emo.utilities.plotlyanimate.test()[source]
desdeo_emo.utilities.plotlyanimate.test2()[source]