function[]=label_style;
%Draw white rectangle as a background for contour labels 
%of the currently active subplot
%v0.1 senya@atmos.umd.edu 11/17/01 
%v0.2                     12/26/01, layers
set(gca,'layer','top')
hh = findobj('type','text','parent',gca);
set(hh,'rotation',0);

for i = 1:length(hh);

   pos=get(hh(i),'position');
   ext=get(hh(i),'extent');
   x=[ext(1),ext(1)+ext(3),ext(1)+ext(3),ext(1),ext(1)];
   a=0.175;
   b=0.1;
   y=[ext(2)+a*ext(4),ext(2)+a*ext(4),ext(2)+(1-b)*ext(4),ext(2)+(1-b)*ext(4),ext(2)+a*ext(4)];
   %ap=patch(x,y,'w','zdata',(1000)*ones(size(x)),'linestyle','none');
   patch(x,y,'w','linestyle','none');
   %at=text(pos(1),pos(2),1001,get(hh(i),'string'),'HorizontalAlignment','center','VerticalAlignment','middle');
   text(pos(1),pos(2),get(hh(i),'string'),'HorizontalAlignment','center','VerticalAlignment','middle');
end


