display_dke

PURPOSE ^

DISPLAY_DKE M-file for display_dke.fig

SYNOPSIS ^

function varargout = display_dke(varargin)

DESCRIPTION ^

 DISPLAY_DKE M-file for display_dke.fig
      DISPLAY_DKE, by itself, creates a new DISPLAY_DKE or raises the existing
      singleton*.

      H = DISPLAY_DKE returns the handle to a new DISPLAY_DKE or the handle to
      the existing singleton*.

      DISPLAY_DKE('CALLBACK',hObject,eventData,handles,...) calls the
      local
      function named CALLBACK in DISPLAY_DKE.M with the given input arguments.

      DISPLAY_DKE('Property','Value',...) creates a new DISPLAY_DKE or raises the
      existing singleton*.  Starting from the left, property value pairs are
      applied to the GUI before display_dke_OpeningFunction gets called.  An
      unrecognized property name or invalid value makes property application
      stop.  All inputs are passed to display_dke_OpeningFcn via varargin.

      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
      instance to run (singleton)".

 See also: GUIDE, GUIDATA, GUIHANDLES

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function varargout = display_dke(varargin)
0002 % DISPLAY_DKE M-file for display_dke.fig
0003 %      DISPLAY_DKE, by itself, creates a new DISPLAY_DKE or raises the existing
0004 %      singleton*.
0005 %
0006 %      H = DISPLAY_DKE returns the handle to a new DISPLAY_DKE or the handle to
0007 %      the existing singleton*.
0008 %
0009 %      DISPLAY_DKE('CALLBACK',hObject,eventData,handles,...) calls the
0010 %      local
0011 %      function named CALLBACK in DISPLAY_DKE.M with the given input arguments.
0012 %
0013 %      DISPLAY_DKE('Property','Value',...) creates a new DISPLAY_DKE or raises the
0014 %      existing singleton*.  Starting from the left, property value pairs are
0015 %      applied to the GUI before display_dke_OpeningFunction gets called.  An
0016 %      unrecognized property name or invalid value makes property application
0017 %      stop.  All inputs are passed to display_dke_OpeningFcn via varargin.
0018 %
0019 %      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
0020 %      instance to run (singleton)".
0021 %
0022 % See also: GUIDE, GUIDATA, GUIHANDLES
0023 
0024 % Copyright 2002-2003 The MathWorks, Inc.
0025 
0026 % Edit the above text to modify the response to help display_dke
0027 
0028 % Last Modified by GUIDE v2.5 14-Mar-2006 13:19:31
0029 
0030 % Begin initialization code - DO NOT EDIT
0031 gui_Singleton = 1;
0032 gui_State = struct('gui_Name',       mfilename, ...
0033                    'gui_Singleton',  gui_Singleton, ...
0034                    'gui_OpeningFcn', @display_dke_OpeningFcn, ...
0035                    'gui_OutputFcn',  @display_dke_OutputFcn, ...
0036                    'gui_LayoutFcn',  [] , ...
0037                    'gui_Callback',   []);
0038 if nargin && ischar(varargin{1})
0039     gui_State.gui_Callback = str2func(varargin{1});
0040 end
0041 
0042 if nargout
0043     [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
0044 else
0045     gui_mainfcn(gui_State, varargin{:});
0046 end
0047 % End initialization code - DO NOT EDIT
0048 
0049 
0050 % --- Executes just before display_dke is made visible.
0051 function display_dke_OpeningFcn(hObject, eventdata, handles, varargin)
0052 % This function has no output args, see OutputFcn.
0053 % hObject    handle to figure
0054 % eventdata  reserved - to be defined in a future version of MATLAB
0055 % handles    structure with handles and user data (see GUIDATA)
0056 % varargin   command line arguments to display_dke (see VARARGIN)
0057 
0058 % Choose default command line output for display_dke
0059 handles.output = hObject;
0060 
0061 % ------------- My Changes --------------
0062 %
0063 handles.scenarios = {};
0064 handles.graphs = {};
0065 handles.selectedgraphs1 = [];
0066 handles.selectedgraphs2 = [];
0067 %
0068 [handles.listofgraphtypes,...
0069  handles.listoflinestyles,...
0070  handles.listoflinewidths,...
0071  handles.listoflinecolors,...
0072  handles.listofmarkerstyles,...
0073  handles.listofmarkersizes,...
0074  handles.listofmarkercolors]...
0075     = GetGraphProperties_jd;
0076 %
0077 UpdateVisible_jd(handles.visible1, [], handles, handles.axes1, handles.selectedgraphs1);
0078 UpdateVisible_jd(handles.visible2, [], handles, handles.axes2, handles.selectedgraphs2);
0079 %
0080 set(handles.modifypanel1,'visible','off')
0081 set(handles.modifypanel2,'visible','off')
0082 %
0083 % --------- End of My Changes -----------
0084 
0085 %
0086 % Update handles structure
0087 guidata(hObject, handles);
0088 
0089 % UIWAIT makes display_dke wait for user response (see UIRESUME)
0090 % uiwait(handles.figure1);
0091 
0092 
0093 % --- Outputs from this function are returned to the command line.
0094 function varargout = display_dke_OutputFcn(hObject, eventdata, handles) 
0095 % varargout  cell array for returning output args (see VARARGOUT);
0096 % hObject    handle to figure
0097 % eventdata  reserved - to be defined in a future version of MATLAB
0098 % handles    structure with handles and user data (see GUIDATA)
0099 
0100 % Get default command line output from handles structure
0101 varargout{1} = handles.output;
0102 
0103 
0104 % --- Executes during object creation, after setting all properties.
0105 function figure1_CreateFcn(hObject, eventdata, handles)
0106 % hObject    handle to figure1 (see GCBO)
0107 % eventdata  reserved - to be defined in a future version of MATLAB
0108 % handles    empty - handles not created until after all CreateFcns called
0109 %
0110 % --------------------------------------------------------------------
0111 function File_Callback(hObject, eventdata, handles)
0112 %
0113 % This function calls a submenu.
0114 %
0115 
0116 % --------------------------------------------------------------------
0117 function Load_Callback(hObject, eventdata, handles)
0118 %
0119 % This function loads a scenario resulting from DKE calculations.
0120 %
0121 [filename,pathname] = uigetfile('RESULTS_*.mat','Load DKE Scenario');
0122 %
0123 if filename == 0,
0124     return
0125 else
0126     filename = [pathname,filename];
0127 end
0128 %
0129 NumberOfScenarios = length(handles.scenarios);
0130 %
0131 for iScenario = 1:NumberOfScenarios,
0132     if isequal(handles.scenarios{iScenario}.name,filename),
0133         h = warndlg('The scenario you are trying to load is already in memory','Existing scenario');
0134         return
0135     end
0136 end
0137 %
0138 load(filename,'equil');
0139 %
0140 handles.scenarios{NumberOfScenarios + 1}.name = filename; 
0141 %
0142 guidata(hObject,handles);
0143 %
0144 
0145 % --------------------------------------------------------------------
0146 function Open_Callback(hObject, eventdata, handles)
0147 %
0148 % This function opens a worspace previously saved.
0149 %
0150 [filename,pathname] = uigetfile('.dke','Open Saved Workspace');
0151 %
0152 if filename == 0,
0153     return
0154 end
0155 %
0156 load([pathname,filename],'scenarios','graphs','listofgraphtypes','selectedgraphs1','selectedgraphs2','-mat')
0157 %
0158 handles.scenarios = scenarios;
0159 handles.graphs = graphs;
0160 handles.listofgraphtypes = listofgraphtypes;
0161 handles.selectedgraphs1 = selectedgraphs1;
0162 handles.selectedgraphs2 = selectedgraphs2;
0163 %
0164 UpdateListOfGraphs_jd(handles.listbox1, eventdata, handles, handles.axes1)
0165 UpdateListOfGraphs_jd(handles.listbox2, eventdata, handles, handles.axes2)
0166 %
0167 guidata(hObject,handles);
0168 %
0169 
0170 % --------------------------------------------------------------------
0171 function Save_Callback(hObject, eventdata, handles)
0172 %
0173 % This function saves the current worspace.
0174 %
0175 [filename,pathname] = uiputfile('.dke','Save Workspace','display_workspace');
0176 %
0177 if filename == 0,
0178     return
0179 end
0180 %
0181 scenarios = handles.scenarios;
0182 graphs = handles.graphs;
0183 listofgraphtypes = handles.listofgraphtypes;
0184 selectedgraphs1 = handles.selectedgraphs1;
0185 selectedgraphs2 = handles.selectedgraphs2;
0186 %
0187 save([pathname,filename],'scenarios','graphs','listofgraphtypes','selectedgraphs1','selectedgraphs2','-mat')
0188 %
0189 
0190 % --------------------------------------------------------------------
0191 function Print_Callback(hObject, eventdata, handles)
0192 %
0193 % This function prints the main window.
0194 %
0195 %printdlg('-crossplatform',handles.figure1)
0196 printdlg(handles.figure1)
0197 %
0198 % --------------------------------------------------------------------
0199 function Exit_Callback(hObject, eventdata, handles)
0200 %
0201 % This function closes display_dke.
0202 %
0203 close(handles.figure1)
0204 %
0205 
0206 % --------------------------------------------------------------------
0207 function Tools_Callback(hObject, eventdata, handles)
0208 % hObject    handle to Tools (see GCBO)
0209 % eventdata  reserved - to be defined in a future version of MATLAB
0210 % handles    structure with handles and user data (see GUIDATA)
0211 
0212 
0213 % --------------------------------------------------------------------
0214 function Help_Callback(hObject, eventdata, handles)
0215 % hObject    handle to Help (see GCBO)
0216 % eventdata  reserved - to be defined in a future version of MATLAB
0217 % handles    structure with handles and user data (see GUIDATA)
0218 
0219 
0220 % --- Executes on selection change in listbox1.
0221 function listbox1_Callback(hObject, eventdata, handles)
0222 %
0223 % This function finds and writes the indexes of selected graphs
0224 %
0225 selectedgraphs1 = UpdateSelectedGraphs_jd(hObject, [], handles, handles.axes1, handles.visible1);
0226 %
0227 handles.selectedgraphs1 = selectedgraphs1;
0228 %
0229 UpdateGraphs_jd(handles.modifypanel1, [], handles, handles.axes1, handles.selectedgraphs1);
0230 %
0231 guidata(hObject,handles);
0232 %
0233 
0234 % --- Executes during object creation, after setting all properties.
0235 function listbox1_CreateFcn(hObject, eventdata, handles)
0236 % hObject    handle to listbox1 (see GCBO)
0237 % eventdata  reserved - to be defined in a future version of MATLAB
0238 % handles    empty - handles not created until after all CreateFcns called
0239 
0240 % Hint: listbox controls usually have a white background on Windows.
0241 %       See ISPC and COMPUTER.
0242 if ispc
0243     set(hObject,'BackgroundColor','white');
0244 else
0245     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0246 end
0247 
0248 
0249 % --- Executes on selection change in listbox2.
0250 function listbox2_Callback(hObject, eventdata, handles)
0251 %
0252 % This function finds and writes the indexes of selected graphs
0253 %
0254 selectedgraphs2 = UpdateSelectedGraphs_jd(hObject, [], handles, handles.axes2, handles.visible2);
0255 %
0256 handles.selectedgraphs2 = selectedgraphs2;
0257 %
0258 UpdateGraphs_jd(handles.modifypanel2, [], handles, handles.axes2, handles.selectedgraphs2);
0259 %
0260 guidata(hObject,handles);
0261 %
0262 
0263 % --- Executes during object creation, after setting all properties.
0264 function listbox2_CreateFcn(hObject, eventdata, handles)
0265 % hObject    handle to listbox2 (see GCBO)
0266 % eventdata  reserved - to be defined in a future version of MATLAB
0267 % handles    empty - handles not created until after all CreateFcns called
0268 
0269 % Hint: listbox controls usually have a white background on Windows.
0270 %       See ISPC and COMPUTER.
0271 if ispc
0272     set(hObject,'BackgroundColor','white');
0273 else
0274     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0275 end
0276 
0277 
0278 % --- Executes on button press in new1.
0279 function new1_Callback(hObject, eventdata, handles)
0280 %
0281 % This function adds a new graph to axes1 and stores it in handles
0282 %
0283 [handles,selectedgraphs1] = AddNewGraph_jd(hObject, [], handles, handles.axes1, handles.listbox1, handles.visible1, handles.selectedgraphs1);
0284 %
0285 handles.selectedgraphs1 = selectedgraphs1;
0286 %
0287 UpdateGraphs_jd(handles.modifypanel1, [], handles, handles.axes1, handles.selectedgraphs1);
0288 %
0289 guidata(hObject,handles);
0290 %
0291 
0292 % --- Executes on button press in new2.
0293 function new2_Callback(hObject, eventdata, handles)
0294 %
0295 % This function adds a new graph to axes2 and stores it in handles
0296 %
0297 [handles,selectedgraphs2] = AddNewGraph_jd(hObject, [], handles, handles.axes2, handles.listbox2, handles.visible2, handles.selectedgraphs2);
0298 %
0299 handles.selectedgraphs2 = selectedgraphs2;
0300 %
0301 UpdateGraphs_jd(handles.modifypanel2, [], handles, handles.axes2, handles.selectedgraphs2);
0302 %
0303 guidata(hObject,handles);
0304 %
0305 
0306 % --- Executes on button press in remove1.
0307 function remove1_Callback(hObject, eventdata, handles)
0308 %
0309 % This function erase selected graphs from axes1
0310 %
0311 [handles,selectedgraphs1] = RemoveGraph_jd(hObject, [], handles, handles.axes1, handles.listbox1, handles.visible1, handles.selectedgraphs1);
0312 %
0313 handles.selectedgraphs1 = selectedgraphs1;
0314 %
0315 UpdateGraphs_jd(handles.modifypanel1, [], handles, handles.axes1, handles.selectedgraphs1);
0316 %
0317 guidata(hObject,handles);
0318 %
0319 
0320 % --- Executes on button press in remove2.
0321 function remove2_Callback(hObject, eventdata, handles)
0322 %
0323 % This function erase selected graphs from axes2
0324 %
0325 [handles,selectedgraphs2] = RemoveGraph_jd(hObject, [], handles, handles.axes2, handles.listbox2, handles.visible2, handles.selectedgraphs2);
0326 %
0327 handles.selectedgraphs2 = selectedgraphs2;
0328 %
0329 UpdateGraphs_jd(handles.modifypanel2, [], handles, handles.axes2, handles.selectedgraphs2);
0330 %
0331 guidata(hObject,handles);
0332 %
0333 
0334 % --- Executes on button press in visible1.
0335 function visible1_Callback(hObject, eventdata, handles)
0336 %
0337 %  This function inverts the visible status of selected graphs on axes1
0338 %
0339 ChangeVisible_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1)
0340 %
0341 
0342 % --- Executes on button press in visible2.
0343 function visible2_Callback(hObject, eventdata, handles)
0344 %
0345 %  This function inverts the visible status of selected graphs on axes1
0346 %
0347 ChangeVisible_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2)
0348 %
0349 
0350 % --- Executes on button press in modify1.
0351 function modify1_Callback(hObject, eventdata, handles)
0352 %
0353 % Sets the modify panel to visible instead of the result panel
0354 %
0355 if isequal(get(hObject,'string'),'Modify')
0356     set(handles.modifypanel1,'visible','on')
0357     set(hObject,'string','Hide')
0358 else
0359     set(handles.modifypanel1,'visible','off')
0360     set(hObject,'string','Modify')
0361 end
0362 %
0363 
0364 % --- Executes on button press in modify2.
0365 function modify2_Callback(hObject, eventdata, handles)
0366 %
0367 % Sets the modify panel to visible instead of the result panel
0368 %
0369 if isequal(get(hObject,'string'),'Modify')
0370     set(handles.modifypanel2,'visible','on')
0371     set(hObject,'string','Hide')
0372 else
0373     set(handles.modifypanel2,'visible','off')
0374     set(hObject,'string','Modify')
0375 end
0376 %
0377 
0378 % --- Executes on selection change in linestyle1.
0379 function linestyle1_Callback(hObject, eventdata, handles)
0380 %
0381 % This function changes the line properties of the selected graphs in axes1.
0382 %
0383 ChangeGraphProperty_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1, 'linestyle', handles.listoflinestyles);
0384 %
0385 
0386 % --- Executes during object creation, after setting all properties.
0387 function linestyle1_CreateFcn(hObject, eventdata, handles)
0388 % hObject    handle to linestyle1 (see GCBO)
0389 % eventdata  reserved - to be defined in a future version of MATLAB
0390 % handles    empty - handles not created until after all CreateFcns called
0391 
0392 % Hint: popupmenu controls usually have a white background on Windows.
0393 %       See ISPC and COMPUTER.
0394 if ispc
0395     set(hObject,'BackgroundColor','white');
0396 else
0397     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0398 end
0399 
0400 % --- Executes on selection change in linestyle2.
0401 function linestyle2_Callback(hObject, eventdata, handles)
0402 %
0403 % This function changes the line properties of the selected graphs in axes2.
0404 %
0405 ChangeGraphProperty_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2, 'linestyle', handles.listoflinestyles);
0406 %
0407 
0408 % --- Executes during object creation, after setting all properties.
0409 function linestyle2_CreateFcn(hObject, eventdata, handles)
0410 % hObject    handle to linestyle2 (see GCBO)
0411 % eventdata  reserved - to be defined in a future version of MATLAB
0412 % handles    empty - handles not created until after all CreateFcns called
0413 
0414 % Hint: popupmenu controls usually have a white background on Windows.
0415 %       See ISPC and COMPUTER.
0416 if ispc
0417     set(hObject,'BackgroundColor','white');
0418 else
0419     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0420 end
0421 
0422 % --- Executes on selection change in linewidth1.
0423 function linewidth1_Callback(hObject, eventdata, handles)
0424 %
0425 % This function changes the line width of the selected graphs in axes1.
0426 %
0427 ChangeGraphProperty_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1, 'linewidth', handles.listoflinewidths);
0428 %
0429 
0430 % --- Executes during object creation, after setting all properties.
0431 function linewidth1_CreateFcn(hObject, eventdata, handles)
0432 % hObject    handle to linewidth1 (see GCBO)
0433 % eventdata  reserved - to be defined in a future version of MATLAB
0434 % handles    empty - handles not created until after all CreateFcns called
0435 
0436 % Hint: popupmenu controls usually have a white background on Windows.
0437 %       See ISPC and COMPUTER.
0438 if ispc
0439     set(hObject,'BackgroundColor','white');
0440 else
0441     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0442 end
0443 
0444 % --- Executes on selection change in linewidth2.
0445 function linewidth2_Callback(hObject, eventdata, handles)
0446 %
0447 % This function changes the line width of the selected graphs in axes2.
0448 %
0449 ChangeGraphProperty_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2, 'linewidth', handles.listoflinewidths);
0450 %
0451 
0452 % --- Executes during object creation, after setting all properties.
0453 function linewidth2_CreateFcn(hObject, eventdata, handles)
0454 % hObject    handle to linewidth2 (see GCBO)
0455 % eventdata  reserved - to be defined in a future version of MATLAB
0456 % handles    empty - handles not created until after all CreateFcns called
0457 
0458 % Hint: popupmenu controls usually have a white background on Windows.
0459 %       See ISPC and COMPUTER.
0460 if ispc
0461     set(hObject,'BackgroundColor','white');
0462 else
0463     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0464 end
0465 
0466 % --- Executes on selection change in linecolor1.
0467 function linecolor1_Callback(hObject, eventdata, handles)
0468 %
0469 % This function changes the line color of the selected graphs in axes1.
0470 %
0471 ChangeGraphProperty_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1, 'color', handles.listoflinecolors);
0472 %
0473 
0474 % --- Executes during object creation, after setting all properties.
0475 function linecolor1_CreateFcn(hObject, eventdata, handles)
0476 % hObject    handle to linecolor1 (see GCBO)
0477 % eventdata  reserved - to be defined in a future version of MATLAB
0478 % handles    empty - handles not created until after all CreateFcns called
0479 
0480 % Hint: popupmenu controls usually have a white background on Windows.
0481 %       See ISPC and COMPUTER.
0482 if ispc
0483     set(hObject,'BackgroundColor','white');
0484 else
0485     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0486 end
0487 
0488 % --- Executes on selection change in linecolor2.
0489 function linecolor2_Callback(hObject, eventdata, handles)
0490 %
0491 % This function changes the line color of the selected graphs in axes2.
0492 %
0493 ChangeGraphProperty_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2, 'color', handles.listoflinecolors);
0494 %
0495 
0496 % --- Executes during object creation, after setting all properties.
0497 function linecolor2_CreateFcn(hObject, eventdata, handles)
0498 % hObject    handle to linecolor2 (see GCBO)
0499 % eventdata  reserved - to be defined in a future version of MATLAB
0500 % handles    empty - handles not created until after all CreateFcns called
0501 
0502 % Hint: popupmenu controls usually have a white background on Windows.
0503 %       See ISPC and COMPUTER.
0504 if ispc
0505     set(hObject,'BackgroundColor','white');
0506 else
0507     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0508 end
0509 
0510 
0511 % --- Executes on button press in markerstyle1.
0512 function markerstyle1_Callback(hObject, eventdata, handles)
0513 %
0514 % This function changes the marker style of the selected graphs in axes1.
0515 %
0516 ChangeGraphProperty_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1, 'marker', handles.listofmarkerstyles);
0517 %
0518 
0519 % --- Executes during object creation, after setting all properties.
0520 function markerstyle1_CreateFcn(hObject, eventdata, handles)
0521 % hObject    handle to markerstyle1 (see GCBO)
0522 % eventdata  reserved - to be defined in a future version of MATLAB
0523 % handles    empty - handles not created until after all CreateFcns called
0524 
0525 % Hint: popupmenu controls usually have a white background on Windows.
0526 %       See ISPC and COMPUTER.
0527 if ispc
0528     set(hObject,'BackgroundColor','white');
0529 else
0530     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0531 end
0532 
0533 % --- Executes on selection change in markerstyle2.
0534 function markerstyle2_Callback(hObject, eventdata, handles)
0535 %
0536 % This function changes the marker style of the selected graphs in axes2.
0537 %
0538 ChangeGraphProperty_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2, 'marker', handles.listofmarkerstyles);
0539 %
0540 
0541 % --- Executes during object creation, after setting all properties.
0542 function markerstyle2_CreateFcn(hObject, eventdata, handles)
0543 % hObject    handle to markerstyle2 (see GCBO)
0544 % eventdata  reserved - to be defined in a future version of MATLAB
0545 % handles    empty - handles not created until after all CreateFcns called
0546 
0547 % Hint: popupmenu controls usually have a white background on Windows.
0548 %       See ISPC and COMPUTER.
0549 if ispc
0550     set(hObject,'BackgroundColor','white');
0551 else
0552     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0553 end
0554 
0555 
0556 % --- Executes on selection change in markersize1.
0557 function markersize1_Callback(hObject, eventdata, handles)
0558 %
0559 % This function changes the marker size of the selected graphs in axes1.
0560 %
0561 ChangeGraphProperty_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1, 'markersize', handles.listofmarkersizes);
0562 %
0563 
0564 % --- Executes during object creation, after setting all properties.
0565 function markersize1_CreateFcn(hObject, eventdata, handles)
0566 % hObject    handle to markersize1 (see GCBO)
0567 % eventdata  reserved - to be defined in a future version of MATLAB
0568 % handles    empty - handles not created until after all CreateFcns called
0569 
0570 % Hint: popupmenu controls usually have a white background on Windows.
0571 %       See ISPC and COMPUTER.
0572 if ispc
0573     set(hObject,'BackgroundColor','white');
0574 else
0575     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0576 end
0577 
0578 % --- Executes on selection change in markersize2.
0579 function markersize2_Callback(hObject, eventdata, handles)
0580 %
0581 % This function changes the marker size of the selected graphs in axes1.
0582 %
0583 ChangeGraphProperty_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2, 'markersize', handles.listofmarkersizes);
0584 %
0585 
0586 % --- Executes during object creation, after setting all properties.
0587 function markersize2_CreateFcn(hObject, eventdata, handles)
0588 % hObject    handle to markersize2 (see GCBO)
0589 % eventdata  reserved - to be defined in a future version of MATLAB
0590 % handles    empty - handles not created until after all CreateFcns called
0591 
0592 % Hint: popupmenu controls usually have a white background on Windows.
0593 %       See ISPC and COMPUTER.
0594 if ispc
0595     set(hObject,'BackgroundColor','white');
0596 else
0597     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0598 end
0599 
0600 % --- Executes on selection change in markercolor1.
0601 function markercolor1_Callback(hObject, eventdata, handles)
0602 %
0603 % This function changes the marker color of the selected graphs in axes1.
0604 %
0605 ChangeGraphProperty_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1, 'markeredgecolor', handles.listofmarkercolors);
0606 ChangeGraphProperty_jd(hObject, [], handles, handles.axes1, handles.selectedgraphs1, 'markerfacecolor', handles.listofmarkercolors);
0607 %
0608 
0609 % --- Executes during object creation, after setting all properties.
0610 function markercolor1_CreateFcn(hObject, eventdata, handles)
0611 % hObject    handle to markercolor1 (see GCBO)
0612 % eventdata  reserved - to be defined in a future version of MATLAB
0613 % handles    empty - handles not created until after all CreateFcns called
0614 
0615 % Hint: popupmenu controls usually have a white background on Windows.
0616 %       See ISPC and COMPUTER.
0617 if ispc
0618     set(hObject,'BackgroundColor','white');
0619 else
0620     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0621 end
0622 
0623 % --- Executes on selection change in markercolor2.
0624 function markercolor2_Callback(hObject, eventdata, handles)
0625 %
0626 % This function changes the marker color of the selected graphs in axes1.
0627 %
0628 ChangeGraphProperty_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2, 'markeredgecolor', handles.listofmarkercolors);
0629 ChangeGraphProperty_jd(hObject, [], handles, handles.axes2, handles.selectedgraphs2, 'markerfacecolor', handles.listofmarkercolors);
0630 %
0631 
0632 % --- Executes during object creation, after setting all properties.
0633 function markercolor2_CreateFcn(hObject, eventdata, handles)
0634 % hObject    handle to markercolor2 (see GCBO)
0635 % eventdata  reserved - to be defined in a future version of MATLAB
0636 % handles    empty - handles not created until after all CreateFcns called
0637 
0638 % Hint: popupmenu controls usually have a white background on Windows.
0639 %       See ISPC and COMPUTER.
0640 if ispc
0641     set(hObject,'BackgroundColor','white');
0642 else
0643     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0644 end
0645 
0646

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.