parameters: (
      rowsID_observed: np.ndarray,
      colsID_observed: np.ndarray,
      rowsID_calculated: np.ndarray,
      colsID_calculated: np.ndarray,
      bankname: str,
      npeaks: int,
  )
return_statement: return fig
docstring: Plot legacy style plots for diagnostics
  
      @param rowsID_observed
      @param colsID_observed
      @param rowsID_calculated
      @param colsID_calculated
      @param bankname
      @param npeaks
  
      @return: figure handle
docstring_summary: Plot legacy style plots for diagnostics
docstring_tokens: Plot legacy style plots for diagnostics
function: def plot_bank_legacy(
      rowsID_observed: np.ndarray,
      colsID_observed: np.ndarray,
      rowsID_calculated: np.ndarray,
      colsID_calculated: np.ndarray,
      bankname: str,
      npeaks: int,
  ) -> plt.Figure:
      """
      Plot legacy style plots for diagnostics
  
      @param rowsID_observed
      @param colsID_observed
      @param rowsID_calculated
      @param colsID_calculated
      @param bankname
      @param npeaks
  
      @return: figure handle
      """
      # plotting
      fig, axes = plt.subplots(1, 2, figsize=(10, 5))  # side by side
      # plot col cmp
      # -- plot the diagnal helper line
      max_rown = max(rowsID_observed.max(), rowsID_calculated.max())
      axes[0].plot([0, max_rown], [0, max_rown], "b:", alpha=0.5)
      # -- plot the data
      axes[0].plot(rowsID_calculated, rowsID_observed, 'r+')
      # -- config grid
      axes[0].grid(color='k', linestyle='--', alpha=0.25)
      # -- config axes
      axes[0].set_xlabel("calculated row number")
      axes[0].set_ylabel("observed row number")
      axes[0].set_title(f"Detector Row Number Comparison, {bankname}")
      axes[0].text(0.5, 0.2, f"Number of Peaks = {npeaks}", transform=axes[0].transAxes)
      axes[0].set_aspect(aspect='equal')
      # plot row cmp
      # -- plot the diagnal helper line
      max_coln = max(colsID_observed.max(), colsID_calculated.max())
      axes[1].plot([0, max_coln], [0, max_coln], "b:", alpha=0.5)
      # -- plot the data
      axes[1].plot(colsID_calculated, colsID_observed, 'r+')
      # -- config grid
      axes[1].grid(color='k', linestyle='--', alpha=0.25)
      # -- config axes
      axes[1].set_xlabel("calculated column number")
      axes[1].set_ylabel("observed column number")
      axes[1].set_title(f"Detector Column Number Comparison, {bankname}")
      axes[1].text(0.5, 0.2, f"Number of Peaks = {npeaks}", transform=axes[1].transAxes)
      axes[1].set_aspect(aspect='equal')
  
      return fig
function_tokens: def plot_bank_legacy ( rowsID_observed : np . ndarray , colsID_observed : np . ndarray , rowsID_calculated : np . ndarray , colsID_calculated : np . ndarray , bankname : str , npeaks : int , ) -> plt . Figure : # plotting fig , axes = plt . subplots ( 1 , 2 , figsize = ( 10 , 5 ) ) # side by side # plot col cmp # -- plot the diagnal helper line max_rown = max ( rowsID_observed . max ( ) , rowsID_calculated . max ( ) ) axes [ 0 ] . plot ( [ 0 , max_rown ] , [ 0 , max_rown ] , "b:" , alpha = 0.5 ) # -- plot the data axes [ 0 ] . plot ( rowsID_calculated , rowsID_observed , 'r+' ) # -- config grid axes [ 0 ] . grid ( color = 'k' , linestyle = '--' , alpha = 0.25 ) # -- config axes axes [ 0 ] . set_xlabel ( "calculated row number" ) axes [ 0 ] . set_ylabel ( "observed row number" ) axes [ 0 ] . set_title ( f"Detector Row Number Comparison, {bankname}" ) axes [ 0 ] . text ( 0.5 , 0.2 , f"Number of Peaks = {npeaks}" , transform = axes [ 0 ] . transAxes ) axes [ 0 ] . set_aspect ( aspect = 'equal' ) # plot row cmp # -- plot the diagnal helper line max_coln = max ( colsID_observed . max ( ) , colsID_calculated . max ( ) ) axes [ 1 ] . plot ( [ 0 , max_coln ] , [ 0 , max_coln ] , "b:" , alpha = 0.5 ) # -- plot the data axes [ 1 ] . plot ( colsID_calculated , colsID_observed , 'r+' ) # -- config grid axes [ 1 ] . grid ( color = 'k' , linestyle = '--' , alpha = 0.25 ) # -- config axes axes [ 1 ] . set_xlabel ( "calculated column number" ) axes [ 1 ] . set_ylabel ( "observed column number" ) axes [ 1 ] . set_title ( f"Detector Column Number Comparison, {bankname}" ) axes [ 1 ] . text ( 0.5 , 0.2 , f"Number of Peaks = {npeaks}" , transform = axes [ 1 ] . transAxes ) axes [ 1 ] . set_aspect ( aspect = 'equal' ) return fig