class_docstr: An abstract class for all class-based plots
docstr: The constructor must take all input data required to create the plot and assign
  it as attributes. e.g., ``self.value = value``, no other processing should
  happen here. The input data must be already aggregated. For example, when
  plotting a confusion matrix, the aggregated data are the numbers that appear
  in each of the quadrants (the unagreggated data are the ``y_true``, ``y_pred``
  arrays). Since users typically create plots from raw data (such as ``y_true``
  and ``y_pred``), they will often use ``Plot.from_raw_data`` instead of this
  constructor.
  
  The only suggested argument is ``label=None``, which should be used to
  identify the plot (e.g., in the title), and in composed plots.
  
  All arguments beyond the input data must be keyword-only (add a *
  argument between the input and the rest of the arguments).
docstr_tok: ["The","constructor","must","take","all","input","data","required","to","create","the","plot","and","assign","it","as","attributes",".","e.g.",",","``","self.value","=","value","``",",","no","other","processing","should","happen","here",".","The","input","data","must","be","already","aggregated",".","For","example",",","when","plotting","a","confusion","matrix",",","the","aggregated","data","are","the","numbers","that","appear","in","each","of","the","quadrants","(","the","unagreggated","data","are","the","``","y_true","``",",","``","y_pred","``","arrays",")",".","Since","users","typically","create","plots","from","raw","data","(","such","as","``","y_true","``","and","``","y_pred","``",")",",","they","will","often","use","``","Plot.from_raw_data","``","instead","of","this","constructor",".","The","only","suggested","argument","is","``","label=None","``",",","which","should","be","used","to","identify","the","plot","(","e.g.",",","in","the","title",")",",","and","in","composed","plots",".","All","arguments","beyond","the","input","data","must","be","keyword-only","(","add","a","*","argument","between","the","input","and","the","rest","of","the","arguments",")","."]
code: def __init__(self, *, label=None):
      """
      The constructor must take all input data required to create the plot and assign
      it as attributes. e.g., ``self.value = value``, no other processing should
      happen here. The input data must be already aggregated. For example, when
      plotting a confusion matrix, the aggregated data are the numbers that appear
      in each of the quadrants (the unagreggated data are the ``y_true``, ``y_pred``
      arrays). Since users typically create plots from raw data (such as ``y_true``
      and ``y_pred``), they will often use ``Plot.from_raw_data`` instead of this
      constructor.
  
      The only suggested argument is ``label=None``, which should be used to
      identify the plot (e.g., in the title), and in composed plots.
  
      All arguments beyond the input data must be keyword-only (add a *
      argument between the input and the rest of the arguments).
      """
      pass
  
imports: import json
  from pathlib import Path
  import abc
  from ..report.serialize import figure2html
label_desc: Use image node_id 1 to create a new AbstractPlot object from inherited base classes: abc with example: obj = AbstractPlot()