Skip to content

Commit d7e91c0

Browse files
committed
Correct axis labels
1 parent ce70dbf commit d7e91c0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

code/+vidrio/+mixed/AOandAI_OO.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@
9090

9191
%Make two empty axes which we fill in the method readAndPlotData
9292
obj.axis_A = axes('Parent', obj.hFig, 'Position', [0.1 0.12 0.4 0.8]);
93-
xlabel('Voltage (V)')
94-
ylabel('Samples')
9593
obj.axis_B = axes('Parent', obj.hFig, 'Position', [0.58 0.12 0.4 0.8]);
9694

9795
% Plot some empty data which we will later modify in readAndPlotData
@@ -102,11 +100,11 @@
102100
plot(obj.axis_B, zeros(round(obj.sampleRate*obj.updatePeriod),1),'.-')
103101

104102
%Make plots look nice
105-
obj.axis_A.XLabel.String='Voltage (V)';
106-
obj.axis_A.YLabel.String='Samples';
103+
obj.axis_A.YLabel.String='Voltage (V)';
104+
obj.axis_A.XLabel.String='Samples';
107105

108-
obj.axis_B.XLabel.String='Voltage (V)';
109-
obj.axis_B.YLabel.String='Samples';
106+
obj.axis_B.XLabel.String='AI0 Voltage (V)';
107+
obj.axis_B.YLabel.String='AI1 Voltage (V)';
110108

111109
% Set properties of both axes together
112110
set([obj.axis_A,obj.axis_B], 'Box', 'On', 'XGrid', 'On', 'YGrid', 'On', 'YLim', [obj.minVoltage,obj.maxVoltage])

0 commit comments

Comments
 (0)