diff --git a/tsg_util/display_QC.m b/tsg_util/display_QC.m index 7b1cdd6c1f2b3a5e085756541951450a48c8a019..28e9d22375d2031ea1ec6a0e201705dc0cdb9038 100644 --- a/tsg_util/display_QC.m +++ b/tsg_util/display_QC.m @@ -15,9 +15,23 @@ function display_QC( hGUI, hAxes ) % ------------------------------- tsg = getappdata( hGUI, 'tsg_data'); +% get panel handle +% ---------------- +hdlPanel = findobj(hGUI, 'tag', 'TAG_QC_DISPLAY_PANEL'); + +% get color axes and set 'BackgroundColor' properties of panel handle +% give a transparency effect +% ------------------------------------------------------------------- +bgColor = get(hAxes(1), 'Color'); +set(hdlPanel, 'BackgroundColor', bgColor); + +% and to his chlidren uicontrol +% ----------------------------- +set(findobj(get(hdlPanel,'children'),'style','text'),... + 'BackgroundColor', bgColor) + % set panel visible % ----------------- -hdlPanel = findobj(hGUI, 'tag', 'TAG_QC_DISPLAY_PANEL'); set(hdlPanel, 'visible', 'on'); % get list of keys from hashtable tsg.qc.hash, defined inside @@ -25,10 +39,6 @@ set(hdlPanel, 'visible', 'on'); % ----------------------------------------------------------- qc_list = get(tsg.qc.hash); -% Plot the Salinity with the right color code -% ------------------------------------------- -%bgColor = get(hAxes(1), '); - % iterate (loop) on each key store inside hastable % ------------------------------------------------ for i=1:numel(qc_list)