MATLAB: Setting ytick marks on normplot does not behave as expected

norm plot ytick

TWIMC; I tried this: normplot(x) set(gca,'YTick',[.001 .01 .1 .5 .9 .99 .999]) the result did not show those tick marks on the y axis. It showed a squeezed in set of odd numbered ticks in the middle of the graph. How can I set them? Please let me know. Thank you. Sincerely, CHobbs

Best Answer

The reason is that behind-the-scenes, MATLAB is doing the normal probability, and the tick labels do not correspond to the actual values plotted. You need to do that transform on the tick values.
Try this
set(gca,'YLim',norminv([0.0001 0.9999]),'YTick',norminv([0.001 0.01 0.1 0.5 0.9 0.99 0.999]),'YTickLabel',[0.001 0.01 0.1 0.5 0.9 0.99 0.999])