/**
  * Sets one of the histogram plot points
  *
  * @param index the point position
  * @param newPlotPoint the new point positions in the plot reference system
  */
 public void setPlotPoint(int index, GPoint newPlotPoint) {
   plotPoints.set(index, newPlotPoint);
   updateArrays();
 }
 /**
  * Sets the histogram plot points
  *
  * @param newPlotPoints the new point positions in the plot reference system
  */
 public void setPlotPoints(GPointsArray newPlotPoints) {
   plotPoints.set(newPlotPoints);
   initializeArrays(plotPoints.getNPoints());
   updateArrays();
 }