code: def plot_init(fignum, w, h):
      
      global fig_x_pos, fig_y_pos, plt_num
      dpi = 80
      if isServer:
          dpi = 240
      # plt.ion()
      plt_num += 1
      fig = plt.figure(num=fignum, figsize=(w, h), dpi=dpi)
      if (not isServer) and (not set_env.IS_NOTEBOOK):
          plt.get_current_fig_manager().show()
          # plt.get_current_fig_manager().window.wm_geometry('+%d+%d' %
          # (fig_x_pos,fig_y_pos)) # this only works with matplotlib.use('TKAgg')
          fig_x_pos = fig_x_pos + dpi * (w) + 25
          if plt_num == 3:
              plt_num = 0
              fig_x_pos = 25
              fig_y_pos = fig_y_pos + dpi * (h) + 25
          plt.figtext(.02, .01, version_num)
  # plt.connect('button_press_event',click)
  #
      # plt.ioff()
      return fig
docs: initializes plot number fignum with width w and height h
      Parameters
      __________
      fignum : matplotlib figure number
      w : width
      h : height