#NEWLINE# def plot_eigenvalues_cumulative_ratio_widget( self , figure_size = ( 10 , 6 ) , style = 'coloured' ) : #NEWLINE# #INDENT# "\n        Plot of the cumulative variance ratio captured by the eigenvalues using\n        an interactive widget.\n\n        Parameters\n        ----------\n        figure_size : (`float`, `float`) or ``None``, optional\n            The size of the figure in inches.\n        style : {``'coloured'``, ``'minimal'``}, optional\n            If ``'coloured'``, then the style of the widget will be coloured. If\n            ``minimal``, then the style is simple using black and white colours.\n        " #NEWLINE# try : #NEWLINE# #INDENT# from menpowidgets import plot_graph #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# from menpo.visualize.base import MenpowidgetsMissingError #NEWLINE# raise MenpowidgetsMissingError ( ) #NEWLINE# #UNINDENT# plot_graph ( x_axis = range ( self . n_active_components ) , y_axis = [ self . eigenvalues_cumulative_ratio ( ) ] , legend_entries = [ 'Eigenvalues cumulative ratio' ] , figure_size = figure_size , style = style )