docstr: Scree plot.
  
  References
  ----------
  https://en.wikipedia.org/wiki/Scree_plot
docstr_tok: ["Scree","plot",".","References","--","--","--","--","--","https",":","\/\/en.wikipedia.org\/wiki\/Scree_plot"]
code: def scree_plot(self):
      """Scree plot.
  
      References
      ----------
      https://en.wikipedia.org/wiki/Scree_plot
  
      """
      eig = self._eigenvalues_summary.reset_index()
      eig["component"] = eig["component"].astype(str)
      return (
          alt.Chart(
              self._eigenvalues_summary.reset_index().assign(
                  component=lambda x: x["component"].astype(str)
              )
          )
          .mark_bar(size=10)
          .encode(
              x="component",
              y="eigenvalue",
              tooltip=eig.columns.tolist(),
          )
      )
  
file_path: prince/prince/utils.py
imports: from __future__ import annotations
  import functools
  import altair
  import numpy
  import pandas
  from sklearn.utils import validation
label_desc: Use image node_id 5 for calling the EigenvaluesMixin obj's underlying member method code with example usage: obj.scree_plot() and returns: alt