class_docstr: Module stitches histograms by date
docstr: Create histogram with time-axis and place hist into it at time-value
  
  :param hist: input histogram to insert into histogram with time-axis
  :param str time_bin_idx: time-value at which to insert histogram
  :return: histogram with time-axis
docstr_tok: ["Create","histogram","with","time-axis","and","place","hist","into","it","at","time-value",":","param","hist",":","input","histogram","to","insert","into","histogram","with","time-axis",":","param","str","time_bin_idx",":","time-value","at","which","to","insert","histogram",":","return",":","histogram","with","time-axis"]
code: def _create_hist_with_time_axis(self, hist, time_bin_idx):
      """Create histogram with time-axis and place hist into it at time-value
  
      :param hist: input histogram to insert into histogram with time-axis
      :param str time_bin_idx: time-value at which to insert histogram
      :return: histogram with time-axis
      """
      # basic checks
      if time_bin_idx is None or not isinstance(
          time_bin_idx, (str, int)
      ):
          raise TypeError(
              "time_bin_idx not set. should be an (ordered) string or integer."
          )
  
      ht = (
          hg.SparselyBin(binWidth=1.0, origin=0.0, quantity=lambda x: x)
          if isinstance(time_bin_idx, int)
          else hg.Categorize(quantity=lambda x: x)
      )
      ht.bins[time_bin_idx] = hist
      ht.entries = hist.entries
      return ht
  
file_path: popmon/popmon/stitching/hist_stitcher.py
imports: import histogrammar
  import numpy
  from popmon.analysis.hist_numpy import assert_similar_hists
  from popmon.base import Module
label_desc: Use image node_id 8 for calling the HistStitcher obj's underlying member method code with example usage: obj._create_hist_with_time_axis(hist, time_bin_idx) and returns: ht