class_docstr: !
  @brief Visualizer of CLIQUE algorithm's results.
  @details CLIQUE visualizer provides visualization services that are specific for CLIQUE algorithm, for example,
            to display grid and its density.
class_docstr_tok: ["!","@","brief","Visualizer","of","CLIQUE","algorithm","'s","results",".","@","details","CLIQUE","visualizer","provides","visualization","services","that","are","specific","for","CLIQUE","algorithm",",","for","example",",","to","display","grid","and","its","density","."]
docstr: !
  @brief Show CLIQUE blocks as a grid in data space.
  @details Each block contains points and according to this density is displayed. CLIQUE grid helps to visualize
            grid that was used for clustering process.
  
  @param[in] cells (list): List of cells that is produced by CLIQUE algorithm.
  @param[in] data (array_like): Input data that was used for clustering process.
docstr_tok: ["!","@","brief","Show","CLIQUE","blocks","as","a","grid","in","data","space",".","@","details","Each","block","contains","points","and","according","to","this","density","is","displayed",".","CLIQUE","grid","helps","to","visualize","grid","that","was","used","for","clustering","process",".","@","param","[","in","]","cells","(","list",")",":","List","of","cells","that","is","produced","by","CLIQUE","algorithm",".","@","param","[","in","]","data","(","array_like",")",":","Input","data","that","was","used","for","clustering","process","."]
code: def show_grid(cells, data):
      """!
      @brief Show CLIQUE blocks as a grid in data space.
      @details Each block contains points and according to this density is displayed. CLIQUE grid helps to visualize
                grid that was used for clustering process.
  
      @param[in] cells (list): List of cells that is produced by CLIQUE algorithm.
      @param[in] data (array_like): Input data that was used for clustering process.
  
      """
      dimension = cells[0].dimensions
  
      amount_canvases = 1
      if dimension > 1:
          amount_canvases = int(dimension * (dimension - 1) / 2)
  
      figure = plt.figure()
      grid_spec = gridspec.GridSpec(1, amount_canvases)
  
      pairs = list(itertools.combinations(range(dimension), 2))
      if len(pairs) == 0:
          pairs = [(0, 0)]
  
      for index in range(amount_canvases):
          ax = figure.add_subplot(grid_spec[index])
          clique_visualizer.__draw_cells(ax, cells, pairs[index])
          clique_visualizer.__draw_two_dimension_data(
              ax, data, pairs[index]
          )
  
      plt.show()
      plt.close(figure)
  
imports: import itertools
  from pyclustering.cluster import cluster_visualizer
  from pyclustering.cluster.encoder import type_encoding
  from pyclustering.core.wrapper import ccore_library
  import pyclustering.core.clique_wrapper
  import matplotlib
  import matplotlib.gridspec
  import matplotlib.pyplot
  import matplotlib.patches
label_desc: Use image node_id 1 for calling the clique_visualizer obj's underlying member method code with example usage: obj.show_grid(cells, data) without return types