Dear Zebb Prime,
First of all, thank you for this excellent matlab script which I am using with great pleasure. I found a small issue when I plot a 3-D image with the mesh() function in combination with view(2) and including a colorbar. With this method, it is visible which points where calculated and what the value is using the colorbar. However, when I use this method I receive the error: "Non integer axes scaling. This is most likely a bug in matlabfrag. Please let me know the ytick and yticklabel values for this plot.".
I found what causes this error, appearently, when setting the view to view(2) Matlab sets the "zticklabel" array to "0" instead of emptying it. This causes a division by zero at line 629 and the -inf is not an NaN (it excapes the loop when the division is not an Nan) and, therefore, causes an error a little further in the code. Simply by emtying the "zticklabel" by set(axes_handle, 'zticklabel', '') on forehand solves this error. This can also be soved in the Matlabfrag script, however, I don't know if it is required that a "zticklabel" array can be '0' in other cases.
Best regards,
BN
Dear Zebb Prime,
First of all, thank you for this excellent matlab script which I am using with great pleasure. I found a small issue when I plot a 3-D image with the mesh() function in combination with view(2) and including a colorbar. With this method, it is visible which points where calculated and what the value is using the colorbar. However, when I use this method I receive the error: "Non integer axes scaling. This is most likely a bug in matlabfrag. Please let me know the ytick and yticklabel values for this plot.".
I found what causes this error, appearently, when setting the view to view(2) Matlab sets the "zticklabel" array to "0" instead of emptying it. This causes a division by zero at line 629 and the -inf is not an NaN (it excapes the loop when the division is not an Nan) and, therefore, causes an error a little further in the code. Simply by emtying the "zticklabel" by set(axes_handle, 'zticklabel', '') on forehand solves this error. This can also be soved in the Matlabfrag script, however, I don't know if it is required that a "zticklabel" array can be '0' in other cases.
Best regards,
BN