7.Contours 轮廊

498 阅读1分钟

Contours (d3-contour)

Compute contour polygons using marching squares. 使用marching squares算法计算多边形轮廓

  • d3.contours - create a new contour generator.创建一个新的轮廓生成器
  • contours - compute the contours for a given grid of values.使用一个给定的网格值生成轮廓
  • contours.contour - compute a contour for a given value.使用一个给定的值生成轮廓
  • contours.size - set the size of a contour generator.设置轮廓生成器的尺寸
  • contours.smooth - set whether or not the generated contours are smoothed.设置生成的轮廓是否平滑
  • contours.thresholds - set the thresholds of a contour generator.设置轮廓生成器的阈值
  • d3.contourDensity - create a new density estimator.生成一个密度预测器
  • density - estimate the density of a given array of samples.使用给定样本数组预测密度
  • density.x - set the x accessor of the density estimator.设置一个密度估计的x访问器
  • density.y - set the y accessor of the density estimator.设置一个密度估计的y访问器
  • density.weight - set the weight accessor of the density estimator.设置一个密度估计的weight访问器
  • density.size - set the size of the density estimator. 设置一个密度估计的尺寸
  • density.cellSize - set the cell size of the density estimator.设置密度预测器的单位大小
  • density.thresholds - set the thresholds of the density estimator.设置密度估计的阈值
  • density.bandwidth - set the bandwidth of the density estimator.设置密度估计的带宽