Yes you are right, contour_internal_reduction_factor ( default 4) is not documented , mainly because it should be used with some precautions since it has an impact on the performance.
It is used in the shading/contouring algorithm to compute the size of the Matrix that will be used as input of the algorithm.
We made experiments and decided that a good compromise between quality and speed is to use a factor of 4 between the size of matrix, and the size of the output ( in our internal units), but sometimes for some parameters this number is not good enough, and we need to apply the algorithm on a larger matrix. It is why we introduced this parameter to give in these extreme cases more control to the user.
If you decrease this factor, the quality will increase, but the speed also.
It is used in this plot, to get a more accurate result.
I had a contour plot with very tightly packed isolines over a certain small region. In that region, some blank pixels appeared between the isolines. I tried to reduce the contour_internal_reduction_factor to one, and the problem disappeared, with non appreciable time penalty.
4 Comments
Antonio Serrano-delaTorre
Mar 22, 2022What on Earth is "
contour_internal_reduction_factor"? Found no help about it.
Sylvie Lamy-Thepaut
Mar 23, 2022Hi,
Yes you are right, contour_internal_reduction_factor ( default 4) is not documented , mainly because it should be used with some precautions since it has an impact on the performance.
It is used in the shading/contouring algorithm to compute the size of the Matrix that will be used as input of the algorithm.
We made experiments and decided that a good compromise between quality and speed is to use a factor of 4 between the size of matrix, and the size of the output ( in our internal units), but sometimes for some parameters this number is not good enough, and we need to apply the algorithm on a larger matrix. It is why we introduced this parameter to give in these extreme cases more control to the user.
If you decrease this factor, the quality will increase, but the speed also.
It is used in this plot, to get a more accurate result.
I hope this helps.
Antonio Serrano-delaTorre
Mar 23, 2022Thank you, Sylvie, of course it helps!.
I had a contour plot with very tightly packed isolines over a certain small region. In that region, some blank pixels appeared between the isolines. I tried to reduce the
contour_internal_reduction_factorto one, and the problem disappeared, with non appreciable time penalty.Sylvie Lamy-Thepaut
Mar 23, 2022Great,
Maybe we should document it then..