# HG changeset patch # User Carnë Draug # Date 1422019028 0 # Node ID 9653845601229a4dc5f527231fee099fb5d426d0 # Parent b705f88044bef356fb3d9dfefabe8d436acc12f2 colormap.m: memory lock function to protect persistent variable from clear(). diff -r b705f88044be -r 965384560122 scripts/image/colormap.m --- a/scripts/image/colormap.m Fri Jan 23 13:14:38 2015 +0000 +++ b/scripts/image/colormap.m Fri Jan 23 13:17:08 2015 +0000 @@ -60,6 +60,7 @@ ## Adapted-By: jwe function cmap = colormap (varargin) + mlock; # prevent map_list to be cleared by "clear all" persistent map_list = cell (); [hax, varargin, nargin] = __plt_get_axis_arg__ ("colormap", varargin{:});