From ddab7b9a6c2c54bca2ab76acf4871bb43db62cca Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 12 Aug 2015 13:36:11 -0400 Subject: clean up --- E440a_take_data.m | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/E440a_take_data.m b/E440a_take_data.m index 31898fa..ef735a4 100644 --- a/E440a_take_data.m +++ b/E440a_take_data.m @@ -12,9 +12,6 @@ function spectrum_analyzer = E4440a_take_data(varargin) % 6/20/2013 %% some sane defaults - -%% Data file parameters - nVarargs = length(varargin); if (nVarargs > 5 ) error ('wrong number of arguments'); @@ -218,43 +215,21 @@ if (data_plot_flag) % % Open a window figure111 = figure(111); - %close(figure111); - %figure1 = figure(111); - % - % Create axes -% axes1 = axes('Parent',figure111,'YGrid','on','XGrid','on','FontSize',14); -% box(axes1,'on'); -% hold(axes1,'all'); - %ylim([-2,12]) - %ylim([-85,-70]) - % % Create plot plot(freq/1e6, tr1, 'Color', [1 0 0], 'DisplayName', 'Trace 1'); hold on plot(freq/1e6, tr2, 'Color', [0 0 0], 'DisplayName', 'Trace 2'); plot(freq/1e6, tr3, 'Color', [0 0 1], 'DisplayName', 'Trace 3'); hold off -% plot(freq/1e6,tr1,'Color',[1 0 0],'Parent',axes1,'DisplayName','Trace 1') -% plot(freq/1e6,tr2,'Color',[0 0 0],'Parent',axes1,'DisplayName','Trace 2') -% plot(freq/1e6,tr3,'Color',[0 0 1],'Parent',axes1,'DisplayName','Trace 3') -% - % Create xlabel xlabel('Detection frequency, MHz','FontSize',14); - % - % Create ylabel ylabel('Noise power, dBm','FontSize',14); - % + % Show legend legend('show'); grid on; - - - end %drawnow; - - %% Finish up and cleanup % Close all opened files fclose('all'); -- cgit v1.2.3