class_docstr: A class of the initial plot object.
  
  Do not use this class explicitly.
  
  Instead, you should construct its objects with functions `ggplot()`,
  `corr_plot(...).points().build()` etc.
class_docstr_tok: ["A","class","of","the","initial","plot","object",".","Do","not","use","this","class","explicitly",".","Instead",",","you","should","construct","its","objects","with","functions","`","ggplot","(",")","`",",","`","corr_plot","(","...",")",".points","(",")",".build","(",")","`","etc","."]
code: def duplicate(cls, other):
      dup = PlotSpec(
          data=None,
          mapping=None,
          scales=other.__scales,
          layers=other.__layers,
          metainfo_list=other.__metainfo_list,
          is_livemap=other.__is_livemap,
          crs_initialized=other.__crs_initialized,
          crs=other.__crs,
      )
      dup.props().update(other.props())
      return dup
  
imports: import io
  import json
  import os
  from typing import Union
  from lets_plot._global_settings import get_global_bool, has_global_value, FRAGMENTS_ENABLED
label_desc: Use image node_id 1 for calling the PlotSpec obj's underlying member method code with example usage: obj.duplicate(cls, other) and returns: dup