0
Not a bug

Error in contourf plots

Michael_ fa 7 anys actualitzat fa 7 anys 2

Hello Pavel.

There are some problems with contourf plots "contourf(X,Y,Z,v)" and multiprecision data. Setting the different levels with the parameter "v" does not work properly using multi-precision data. Furthermore using caxis(limits) with multiprecision data leads to an error.


Best regards,

Michael

Not a bug

Hello Michael, 


Please convert mp-values into doubles for use with graphic-related routines (e.g. double(X), double(Y)).

All of such routines are hard-coded to doubles and distributed as compiled code. Which, in fact, has solid reason. 

Resolution of physical devices (displays, printers, etc.) is not capable to cover even single-precision floating-point resolution.

So it has sense to fallback to double type for display (unless your numbers go beyond min/max limits of double type - which is very rare).

Let me know if this is acceptable solution for your situation.


Pavel.

Hello Pavel.


I already used this workaround and it is fine for me. Just wanted to let you know that there is a problem. Maybe you could mention it in the documentation.


Best regards,

Michael