clear all, clc

screenSize = get(groot, 'ScreenSize');
x_size  = 400;
y_size  = 250;
figureColor	= [0.9 0.9 0.9];
panelColor = [0.98 0.98 0.98];

fig = figure('Units', 'pixels', 'Name', 'Example' ,'Position', ...
    [(screenSize(3)-x_size)/2 (screenSize(4)-y_size)/2 x_size y_size], ...
    'Tag', 'figExample', 'Color', figureColor, 'MenuBar','none', ...
    'NumberTitle', 'off');

panel1 = uipanel('Units', 'pixels' , 'Position', [90 180 220 60], ...
    'Title', 'Visibility', 'BackgroundColor', panelColor, ...
    'Tag', 'panelVisibility');
