class_docstr: This class is intended to build correlation matrix plot.
  
  Examples
  --------
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 7
  
      import numpy as np
      from lets_plot import *
      from lets_plot.bistro.corr import *
      LetsPlot.setup_html()
      np.random.seed(42)
      data = {var: np.random.poisson(size=10) for var in 'abcdef'}
      corr_plot(data).tiles().build()
  
  |
  
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 7-9
  
      import numpy as np
      from lets_plot import *
      from lets_plot.bistro.corr import *
      LetsPlot.setup_html()
      np.random.seed(42)
      data = {var: np.random.uniform(size=10) for var in 'abcd'}
      corr_plot(data).tiles(type='upper', diag=True)\
          .labels(type='upper', diag=True, map_size=True, color='black')\
          .palette_RdBu().build()
  
  |
  
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 7-9
  
      import numpy as np
      from lets_plot import *
      from lets_plot.bistro.corr import *
      LetsPlot.setup_html()
      np.random.seed(42)
      data = {var: np.random.normal(size=10) for var in 'abcdef'}
      corr_plot(data, flip=False, threshold=.4).points().labels()\
          .palette_gradient(low='#d73027', mid='#ffffbf', high='#1a9850')\
          .build()
class_docstr_tok: ["This","class","is","intended","to","build","correlation","matrix","plot",".","Examples","--","--","--","--","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","7","import","numpy","as","np","from","lets_plot","import","*","from","lets_plot.bistro.corr","import","*","LetsPlot.setup_html","(",")","np.random.seed","(","42",")","data","=","{","var",":","np.random.poisson","(","size=10",")","for","var","in","'abcdef","'","}","corr_plot","(","data",")",".tiles","(",")",".build","(",")","|","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","7-9","import","numpy","as","np","from","lets_plot","import","*","from","lets_plot.bistro.corr","import","*","LetsPlot.setup_html","(",")","np.random.seed","(","42",")","data","=","{","var",":","np.random.uniform","(","size=10",")","for","var","in","'abcd","'","}","corr_plot","(","data",")",".tiles","(","type='upper","'",",","diag=True",")","\\",".labels","(","type='upper","'",",","diag=True",",","map_size=True",",","color='black","'",")","\\",".palette_RdBu","(",")",".build","(",")","|","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","7-9","import","numpy","as","np","from","lets_plot","import","*","from","lets_plot.bistro.corr","import","*","LetsPlot.setup_html","(",")","np.random.seed","(","42",")","data","=","{","var",":","np.random.normal","(","size=10",")","for","var","in","'abcdef","'","}","corr_plot","(","data",",","flip=False",",","threshold=.4",")",".points","(",")",".labels","(",")","\\",".palette_gradient","(","low=","'","#","d73027","'",",","mid=","'","#","ffffbf","'",",","high=","'","#","1a9850","'",")","\\",".build","(",")"]
docstr: This method creates PlotSpec object.
  
  Returns
  -------
  `PlotSpec`
      Plot specification.
docstr_tok: ["This","method","creates","PlotSpec","object",".","Returns","--","--","--","-","`","PlotSpec","`","Plot","specification","."]
code: def build(self) -> PlotSpec:
      """
      This method creates PlotSpec object.
  
      Returns
      -------
      `PlotSpec`
          Plot specification.
      """
  
      if self._points_params is not None:
          point_params = {
              "type": self._points_params["type"],
              "diag": self._points_params["diag"],
          }
      else:
          point_params = None
  
      if self._labels_params is not None:
          label_params = {
              "type": self._labels_params["type"],
              "diag": self._labels_params["diag"],
              "color": self._labels_params["color"],
              "map_size": self._labels_map_size,
          }
      else:
          label_params = None
  
      if self._tiles_params is not None:
          tile_params = {
              "type": self._tiles_params["type"],
              "diag": self._tiles_params["diag"],
          }
      else:
          tile_params = None
  
      data = self._data
      if _is_corr_matrix(data):
          coefficients = True
      else:
          if is_data_frame(data):
              data = data.corr(numeric_only=True)
              coefficients = True
          else:
              coefficients = False
  
      return PlotSpec(
          data=data,
          mapping=None,
          scales=[],
          layers=[],
          bistro={
              "name": "corr",
              "coefficients": coefficients,
              "show_legend": self._show_legend,
              "flip": self._reverse_y,
              "threshold": self.threshold,
              "palette": self._palette,
              "low": self._low,
              "mid": self._mid,
              "high": self._high,
              "point_params": point_params,
              "tile_params": tile_params,
              "label_params": label_params,
          },
      )
  
imports: from typing import Any
  from lets_plot.plot.util import is_data_frame
  from lets_plot.plot.core import PlotSpec
label_desc: Use image node_id 21 for calling the corr_plot obj's underlying member method code with example usage: obj.build() and returns: PlotSpec