function fig = gplotcontour()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
% 
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files.  Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.

global CONTFIG

str_b = {'None'};
if isfield(CONTFIG, 'loadfn')
   if ~isempty(CONTFIG.loadfn)
      str_b = CONTFIG.loadfn;
   end
end  

h0 = figure('Color',[0.92 0.92 0.97], ...
   'FileName','gplotcontour.m', ...
   'MenuBar','none', ...
	'Name','Contour Menu', ...
	'NumberTitle','off', ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
	'Position',[275 104 502 598], ...
	'Tag','Figcontour', ...
	'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[209.7 364.499 73.8 28.8], ...
	'String','Contour against   this parameter:', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[65.69 405.9 162 19.8], ...
	'String','KA0006', ...
	'Style','edit', ...
	'Tag','txtboxtitle');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[39.59 405.9 26.1 15.3], ...
	'String','Title:', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[301.49 456.3 50.39 15.3], ...
	'String','Year base:', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[289.8 228.6 90.89 22.5], ...
	'String','Add date stamp', ...
	'Style','checkbox', ...
	'Tag','chkboxdate', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'FontSize',12, ...
	'FontWeight','demi', ...
	'ForegroundColor',[1 0 0], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[44.009 173.7 68.309 14.4], ...
	'String','FILES:', ...
	'Style','text', ...
	'Tag','StaticText3', ...
	'UserData','[ ]');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'ListboxTop',0, ...
	'Position',[31.5 258.3 400.49 10.8], ...
	'String','__________________________________________________________', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'FontSize',12, ...
	'FontWeight','demi', ...
	'ForegroundColor',[1 0 0], ...
	'ListboxTop',0, ...
	'Position',[32.4 456.3 96.3 16.2], ...
	'String','BASIC INPUT:', ...
	'Style','text', ...
	'Tag','StaticText3', ...
	'UserData','[ ]');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'FontSize',12, ...
	'FontWeight','demi', ...
	'ForegroundColor',[1 0 0], ...
	'ListboxTop',0, ...
	'Position',[38.7 233.1 124.2 12.6], ...
	'String','OTHER FEATURES:', ...
	'Style','text', ...
	'Tag','StaticText3', ...
	'UserData','[ ]');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'ListboxTop',0, ...
	'Position',[22.5 476.1 412.19 18.9], ...
	'String','__________________________________________________________', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'ListboxTop',0, ...
	'Position',[31.5 195.3 397.8 10.8], ...
	'String','__________________________________________________________', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'Callback','contourmaster(''printfile'')', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[42.3 144 104.4 22.5], ...
	'String','Save print file ', ...
	'Style','checkbox', ...
	'Tag','chkboxprint');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'FontSize',18, ...
	'ListboxTop',0, ...
	'Position',[150.3 491.4 151.2 25.2], ...
	'String','Contour Plotting', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.71 0.71 0.71], ...
	'Callback','contourmaster(''cancel'');', ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[80.99 20.7 80.09 25.2], ...
	'String','Cancel/ Close', ...
	'Tag','btnCancel');


%%%% help button
%h1 = uicontrol('Parent',h0, ...
%	'Units','points', ...
%	'BackgroundColor',[0.71 0.71 0.71], ...
%	'Callback','contourmaster(''help'');', ...
%	'ForegroundColor',[0 0 1], ...
%	'ListboxTop',0, ...
%	'Position',[185.  20.7 80.09 25.2], ...
%	'String','Help', ...
%	'Tag','btnHelp');

h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''readfigcontour'')', ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[288.9 20.7 89.09 25.2], ...
	'String','Update & Preview', ...
	'Tag','btnOK');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[125.1 458.1 48.59 13.5], ...
	'String','Data set:', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'ListboxTop',0, ...
	'Position',[161.1 126.9 251.1 61.2], ...
	'Style','frame', ...
	'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'ListboxTop',0, ...
	'Position',[166.5 168.3 234.9 12.6], ...
	'String','Enter/ Edit name of previously saved plot-setup file:', ...
	'Style','text', ...
	'Tag','StaticText6');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''loadnow'');', ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[343.8 139.5 58.409 22.5], ...
	'String','Load Now', ...
	'Tag','btnLoad');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'ListboxTop',0, ...
	'Position',[161.1 59.309 252 64.8], ...
	'Style','frame', ...
	'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'ListboxTop',0, ...
	'Position',[168.3 106.2 234 11.7], ...
	'String','Enter/ Edit name of file to save plot-setup:', ...
	'Style','text', ...
	'Tag','StaticText6');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[252.4 66.509 84.5 18.9], ...
	'String','contconfig ', ...
   'HorizontalAlignment', 'center', ...
	'Style','edit', ...
	'Tag','txtboxsavefn');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''savenow'');', ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[342.9 73.8 58.409 22.5], ...
	'String','Save Now', ...
	'Tag','btnSave');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'Callback','contourmaster(''xytsection'');', ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[240.6 404.9 171 23.4], ...
	'String','Select section with XYTZOOM ...', ...
	'Tag','btnXYTzoom');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''llrange'')', ...
	'ListboxTop',0, ...
	'Position',[108.9 376.2 84.59 23.4], ...
	'String','Lat Lon range', ...
	'Style','checkbox', ...
	'Tag','chkllrange');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''decimal'')', ...
	'ListboxTop',0, ...
	'Position',[108.9 327.6 86.39 23.4], ...
	'String','Decimal days', ...
	'Style','checkbox', ...
	'Tag','chkdecimal');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''calendar'')', ...
	'ListboxTop',0, ...
	'Position',[108 351.9 86.39 23.4], ...
	'String','Calendar dates', ...
	'Style','checkbox', ...
	'Tag','chkcalendar', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[50.39 380.7 57.59 11.7], ...
	'String','Add to title :', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''radio'',''3'');', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[284.4 374.4 80.09 23.4], ...
	'String','Time', ...
	'Style','radiobutton', ...
	'Tag','radiotime');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''radio'',''2'');', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[284.4 350.1 80.09 23.4], ...
	'String','Latitude', ...
	'Style','radiobutton', ...
	'Tag','radiolatitude', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'Callback','contourmaster(''radio'',''1'');', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[284.4 326.7 80.09 23.4], ...
	'String','Longitude', ...
	'Style','radiobutton', ...
	'Tag','radiolongitude');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[289.8 205.2 90.89 21.6], ...
	'String','Omit main title', ...
	'Style','checkbox', ...
	'Tag','chktitle');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[183.6 293.4 51.3 21.6], ...
	'String','Outline', ...
	'Style','checkbox', ...
	'Tag','chkoutline', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[172.8 228.6 90.89 22.5], ...
	'String','Fonts bold', ...
	'Style','checkbox', ...
	'Tag','chkbold', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[99.89 293.4 85.489 19.8], ...
	'String','[-200:20:200]', ...
	'Style','edit', ...
	'Tag','txtboxlevs');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[28.8 280.8 146.7 12.6], ...
	'String','Default levels are data dependent', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[28.8 294.3 70.19 11.7], ...
	'String','Contour levels:', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[252 297.9 83.69 10.8], ...
	'String','Emphasized levels:', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[335.7 296.1 77.39 18.9], ...
	'String','0', ...
	'Style','edit', ...
	'Tag','txtboxboldlevs');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[336.6 270.9 58.49 19.8], ...
	'String','[ 30  620 ]', ...
	'Style','edit', ...
	'Tag','txtboxdepths');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[230.4 273.6 104.4 11.7], ...
	'String','Depth range (min max):', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.702 0.702 0.702], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[172.8 205.2 90.89 21.6], ...
	'String','Display in B/W', ...
	'Style','checkbox', ...
	'Tag','chkblkwht');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[42.3 103.5 104.4 20.7], ...
	'String','KA0006.eps', ...
	'Style','edit', ...
	'Tag','txtboxprintfn');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[42.3 126 72.809 11.7], ...
	'String','Print file name:', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[166.5 87.0 170.1 17.1], ...
	'String','temporary_string', ...
   'HorizontalAlignment','right', ...  
	'Style','edit', ...
	'Tag','txtboxsavepath');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'ListboxTop',0, ...
	'Position',[191.7 68 54.8 14.4], ...
	'String','file name:', ...
	'Style','text', ...
	'Tag','StaticText8');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[169.2 458.1 124.2 13.5], ...
	'String','Data set:', ...
	'Style','text', ...
	'Tag','textdata');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[32.4 259.2 46.8 10.8], ...
	'String',' ', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
   'Callback','contourmaster(''renewloadfn'');', ...
	'HorizontalAlignment','right', ...
	'ListboxTop',0, ...
	'Position',[166.5 150.3 170.1 17.1], ...
	'Style','edit', ...
	'Tag','txtboxloadpath');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.92 0.92 0.97], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[41.4 433.8 60.3 15.3], ...
	'String','Output path:', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
   'Callback', 'contourmaster(''calendar'')', ...
   'HorizontalAlignment','right', ...
	'ListboxTop',0, ...
	'Position',[103.5 431.9 239.4 19.8], ...
	'String','*_ xy.mat, * _ uv.mat', ...
	'Style','edit', ...
	'Tag','txtboxoutpath');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[352.8 456.3 35.09 18.9], ...
	'String','2000', ...
	'Style','edit', ...
	'Tag','txtboxyear');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'ListboxTop',0, ...
	'Position',[167 130 54.8 14.4], ...
	'String','file name:', ...
	'Style','text', ...
	'Tag','StaticText8');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ForegroundColor',[0 0 0], ...
   'HorizontalAlignment','right', ...
	'ListboxTop',0, ...
	'Position',[222 130 114 18.], ...
	'String',str_b, ...
	'Style','popupmenu', ...
	'Tag','popuploadfn', ...
	'Value',1);
if nargout > 0, fig = h0; end
