If no bounding rectangle is passed to jcv_diagram_generate_useralloc or jcv_diagram_generate, the function _jcv_calc_bounds is used to calculate it. This function is incorrect, because it receives the modified number of points after duplicates have been removed, but uses the unmodified point array data passed by the user. The fix is as follows:
If no bounding rectangle is passed to jcv_diagram_generate_useralloc or jcv_diagram_generate, the function _jcv_calc_bounds is used to calculate it. This function is incorrect, because it receives the modified number of points after duplicates have been removed, but uses the unmodified point array data passed by the user. The fix is as follows:
_jcv_calc_bounds(num_points,internal->sites, &d->min, &d->max);