class_docstr: !
  @brief Visualizer of output dynamic of sync network (Sync).
docstr: !
  @brief Shows correlation matrix between oscillators at the specified iteration.
  
  @param[in] sync_output_dynamic (sync_dynamic): Output dynamic of the Sync network.
  @param[in] iteration (uint): Number of iteration of simulation for which correlation matrix should be
              allocated. If iteration number is not specified, the last step of simulation is used for the matrix
              allocation.
docstr_tok: ["!","@","brief","Shows","correlation","matrix","between","oscillators","at","the","specified","iteration",".","@","param","[","in","]","sync_output_dynamic","(","sync_dynamic",")",":","Output","dynamic","of","the","Sync","network",".","@","param","[","in","]","iteration","(","uint",")",":","Number","of","iteration","of","simulation","for","which","correlation","matrix","should","be","allocated",".","If","iteration","number","is","not","specified",",","the","last","step","of","simulation","is","used","for","the","matrix","allocation","."]
code: def show_correlation_matrix(sync_output_dynamic, iteration=None):
      """!
      @brief Shows correlation matrix between oscillators at the specified iteration.
  
      @param[in] sync_output_dynamic (sync_dynamic): Output dynamic of the Sync network.
      @param[in] iteration (uint): Number of iteration of simulation for which correlation matrix should be
                  allocated. If iteration number is not specified, the last step of simulation is used for the matrix
                  allocation.
  
      """
      correlation_matrix = (
          sync_output_dynamic.allocate_correlation_matrix(iteration)
      )
  
      figure, axes = plt.subplots(1)
      axes.imshow(
          correlation_matrix,
          cmap=plt.get_cmap("cool"),
          interpolation="kaiser",
          vmin=0.0,
          vmax=1.0,
      )
      plt.show()
      plt.close(figure)
  
imports: import math
  import numpy
  import random
  import matplotlib.pyplot
  import matplotlib.animation
  import pyclustering.core.sync_wrapper
  from pyclustering.core.wrapper import ccore_library
  from scipy.integrate import odeint
  from pyclustering.nnet import network, conn_represent, conn_type, initial_type, solve_type
  from pyclustering.utils import pi, draw_dynamics, draw_dynamics_set, set_ax_param
label_desc: Use image node_id 3 for calling the sync_visualizer obj's underlying member method code with example usage: obj.show_correlation_matrix(sync_output_dynamic, iteration) without return types