[Dart-dev] DART/trunk Revision: 11660
dart at ucar.edu
dart at ucar.edu
Thu May 25 12:28:39 MDT 2017
thoar at ucar.edu
2017-05-25 12:28:36 -0600 (Thu, 25 May 2017)
309
Trying to keep the functions from slowing down.
Profiling indicates that step_ahead should be the target, particularly
the rank histogram binning.
The incessant rescaling of the axis() is a slowness, perhaps
we could calculate some decent static bounds given the user input and
avoid the constant rescaling.
Modified: DART/trunk/DART_LAB/matlab/oned_model.m
===================================================================
--- DART/trunk/DART_LAB/matlab/oned_model.m 2017-05-24 15:39:34 UTC (rev 11659)
+++ DART/trunk/DART_LAB/matlab/oned_model.m 2017-05-25 18:28:36 UTC (rev 11660)
@@ -44,6 +44,11 @@
%
% DART $Id$
+%>@todo FIXME really should set plot limits based on model bias and inflation values
+%> could set state limits to +/- 7
+%> observation likelihood graphic (handles.axes) can have a static range
+%> based on these values as well.
+
help oned_model
atts = stylesheet; % get the default fonts and colors
@@ -60,10 +65,10 @@
figHeight = 600; % The height of the entire figure, in pixels
handles.figure = figure('Position', [figXmin figYmin figWidth figHeight], ...
- 'Units', 'Pixels', ...
- 'Name', 'oned_model');
+ 'Units' , 'Pixels', ...
+ 'Name' , 'oned_model');
-set(handles.figure,'Color', atts.background);
+set(handles.figure, 'Color', atts.background);
%% -----------------------------------------------------------------------------
@@ -78,26 +83,26 @@
scaled_fontsize = 0.5; % set fontsize
handles.ui_button_advance_model = uicontrol('Style', 'pushbutton', ...
- 'Units', 'Normalized', ...
- 'Position', [0.125 0.905 0.182 0.064], ...
- 'String', 'Advance Model', ...
- 'BackgroundColor', 'White', ...
- 'FontName', atts.fontname, ...
- 'FontUnits', 'Normalized', ...
- 'FontSize', scaled_fontsize, ...
- 'FontWeight', 'normal', ...
- 'Callback', @step_ahead);
+ 'Units' , 'Normalized', ...
+ 'Position' , [0.125 0.905 0.182 0.064], ...
+ 'String' , 'Advance Model', ...
+ 'BackgroundColor' , 'White', ...
+ 'FontName' , atts.fontname, ...
+ 'FontUnits' , 'Normalized', ...
+ 'FontSize' , scaled_fontsize, ...
+ 'FontWeight' , 'normal', ...
+ 'Callback' , @step_ahead);
handles.ui_button_start_auto_run = uicontrol('Style', 'pushbutton', ...
- 'Units', 'Normalized', ...
- 'Position', [0.125 0.819 0.182 0.064], ...
- 'String', 'Start Auto Run' , ...
- 'BackgroundColor', 'White', ...
- 'FontName', atts.fontname, ...
- 'FontUnits', 'Normalized', ...
- 'FontSize', scaled_fontsize, ...
- 'FontWeight', 'normal', ...
- 'Callback', @auto_run_Callback);
+ 'Units' , 'Normalized', ...
+ 'Position' , [0.125 0.819 0.182 0.064], ...
+ 'String' , 'Start Auto Run' , ...
+ 'BackgroundColor' , 'White', ...
+ 'FontName' , atts.fontname, ...
+ 'FontUnits' , 'Normalized', ...
+ 'FontSize' , scaled_fontsize, ...
+ 'FontWeight' , 'normal', ...
+ 'Callback' , @auto_run_Callback);
%% -------------------------t---------------------------------------------------
% Set up a parent container so we can move the one container around instead of
@@ -104,9 +109,9 @@
% trying to manipulate the positions of all the components.
handles.ui_InputPanel = uipanel('Units','Normalized', ...
- 'Position', [0.774 0.378 0.210 0.370], ...
- 'BorderType', 'none', ...
- 'BackgroundColor', atts.background);
+ 'Position' , [0.774 0.378 0.210 0.370], ...
+ 'BorderType' , 'none', ...
+ 'BackgroundColor' , atts.background);
delta = 0.02;
tXmin = delta;
@@ -117,115 +122,115 @@
scaled_fontsize = 0.50;
handles.ui_text_ens_size = uicontrol(handles.ui_InputPanel, ...
- 'Style', 'text', ...
- 'Units', 'Normalized', ...
- 'Position', [0.010 0.750 0.690 0.180], ...
- 'String', 'Ens. Size' , ...
- 'BackgroundColor', atts.background, ...
- 'HorizontalAlignment','right', ...
- 'FontName', atts.fontname, ...
- 'FontUnits', 'Normalized', ...
- 'FontSize', scaled_fontsize, ...
More information about the Dart-dev
mailing list