matlab2tikz/matlab2tikz — pull request #486 by okomarov (2014-12-11 16:52:51+00:00)
Title: Scaling of cdata at the axis level

Basically, use `point meta min/max` at the axis level, following the comment:

% TODO Use caxis not only for color bars.

And https://github.com/matlab2tikz/matlab2tikz/pull/386#issuecomment-64223356 in `rewritePatch`.