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 that one of them can have
% a string properly which is your legend entry label. Use x,y,dx
% for positioning
annotation('textarrow', [x,x+dx], [y,y], ...
'linestyle', '-', 'color', 'k', 'textcolor', 'k', 'headstyle', 'none')
annotation('textarrow', [x+dx+0.005, x+2*dx+0.005], [y,y], ...
'linestyle', ':', 'color', 'k', 'textcolor', 'k', 'headstyle', 'none')
annotation('textarrow', [x + 2*dx + 0.07, x + 3*dx], [y y], ...
'linestyle', 'none', 'textcolor', 'k', 'headstyle', 'none', 'string', '75Hz')