Assume you use matlab
% Generate an example input data
dt = 0.0001;
t = -0.05 : dt : 0.05;
t0 = 0 : dt : 1/150;
f75Hz_p = [zeros(1, length(t(1) : dt : t0(1) - dt)), sin(2*pi*75*t0), zeros(1, length(t0(end) + dt : dt : t(end)))];
f75Hz_n = -[zeros(1, length(t(1) : dt : t0(1) - dt)), sin(2*pi*75*t0), zeros(1, length(t0(end) + dt : dt : t(end)))];
% Plot the data without any legend
figure(1);
plot(t, f75Hz_p, 'k-');
hold on;
plot(t, f75Hz_n, 'k:');
% By default, Matlab does not provide the legend property you want
% Therefore, you could use annotation textarrow property instead
% x and y are original positions for the textarrow, dx is used for
% incremental length of the textarrow
x = 0.15; y = 0.8; dx = 0.1;
% Drawing (headless) text arrows, so tha