class_docstr: Simple Nested sampler for reference.
class_docstr_tok: ["Simple","Nested","sampler","for","reference","."]
docstr: Make corner plot.
docstr_tok: ["Make","corner","plot","."]
code: def plot(self):
      """Make corner plot."""
      if self.log_to_disk:
          import matplotlib.pyplot as plt
          import corner
  
          data = np.array(self.results["weighted_samples"]["points"])
          weights = np.array(
              self.results["weighted_samples"]["weights"]
          )
          cumsumweights = np.cumsum(weights)
  
          mask = cumsumweights > 1e-4
  
          corner.corner(
              data[mask, :],
              weights=weights[mask],
              labels=self.paramnames + self.derivedparamnames,
              show_titles=True,
          )
          plt.savefig(
              os.path.join(self.logs["plots"], "corner.pdf"),
              bbox_inches="tight",
          )
          plt.close()
  
imports: from __future__ import print_function, division
  import os
  import sys
  import csv
  import json
  import operator
  import time
  import warnings
  from numpy import log, exp, logaddexp
  import numpy
  from .utils import create_logger, make_run_dir, resample_equal, vol_prefactor, vectorize, listify
  from .utils import is_affine_transform, normalised_kendall_tau_distance, distributed_work_chunk_size
  from ultranest.mlfriends import MLFriends, AffineLayer, ScalingLayer, find_nearby, WrappingEllipsoid, RobustEllipsoidRegion
  from .store import HDF5PointStore, TextPointStore, NullPointStore
  from .viz import get_default_viz_callback
  from .ordertest import UniformOrderAccumulator
  from .netiter import PointPile, SingleCounter, MultiCounter, BreadthFirstIterator, TreeNode, count_tree_between, find_nodes_before, logz_sequence
  from .netiter import dump_tree, combine_results
  from .hotstart import get_auxiliary_contbox_parameterization
label_desc: Use image node_id 4 for calling the NestedSampler obj's underlying member method code with example usage: obj.plot() without return types