def _toggle_options(event, params):
 import matplotlib.pyplot as plt
 if (len(params['projs']) > 0):
  if (params['fig_proj'] is None):
   _draw_proj_checkbox(event, params, draw_current_state=False)
  else:
   plt.close(params['fig_proj'])
   del params['proj_checks']
   params['fig_proj'] = None

def _toggle_options ( event , params ) : import matplotlib . pyplot as plt if ( len ( params [ 'projs' ] ) > 0 ) : if ( params [ 'fig_proj' ] is None ) : _draw_proj_checkbox ( event , params , draw_current_state = False ) else : plt . close ( params [ 'fig_proj' ] ) del params [ 'proj_checks' ] params [ 'fig_proj' ] = None
toggle options dialog .