@staticmethod<EOL><INDENT>def __draw_block(ax, pair, block, density_scale):<DEDENT>
max_corner, min_corner = bang_visualizer.__get_rectangle_description(block, pair)<EOL>belong_cluster = block.get_cluster() is not None<EOL>if density_scale != <NUM_LIT:0.0>:<EOL><INDENT>density_scale = bang_visualizer.__maximum_density_alpha * block.get_density() / density_scale<EOL><DEDENT>face_color = matplotlib.colors.to_rgba('<STR_LIT>', alpha=density_scale)<EOL>edge_color = matplotlib.colors.to_rgba('<STR_LIT>', alpha=<NUM_LIT:1.0>)<EOL>rect = patches.Rectangle(min_corner, max_corner[<NUM_LIT:0>] - min_corner[<NUM_LIT:0>], max_corner[<NUM_LIT:1>] - min_corner[<NUM_LIT:1>],<EOL>fill=belong_cluster,<EOL>facecolor=face_color,<EOL>edgecolor=edge_color,<EOL>linewidth=<NUM_LIT:0.5>)<EOL>ax.add_patch(rect)<EOL>
!
        @brief Display BANG-block on the specified ax.

        @param[in] ax (Axis): Axis where block should be displayed.
        @param[in] pair (tuple): Pair of coordinate index that should be displayed.
        @param[in] block (bang_block): BANG-block that should be displayed.
        @param[in] density_scale (double): Max density to display density of the block by appropriate tone.