% comparison between gamma plot and log plot
% clf;q=linspace(0,10);plot(q,(q/max(q)).^.45);hold on;plot(q,log(q+1)/log(max(q)+1),'--');axis('square')

q=linspace(0,10,1000);
clf;
subplot(121)
plot(q,(q/max(q)).^.45);
hold on
plot(q,log(q+1)/log(max(q)+1),'--');
axis('square')
title('DYNAMIC RANGE COMPRESSORS')
xlabel('photoquantity, q')
ylabel('normalized response')
text(1.1,.26,'logarithmic');
%text(1,.55,'power');text(1,.49,'law')
text(.5,.5,'power');text(.5,.44,'law')
subplot(121)

% in inverse space, linpsace goes to log(10+1) = 2.4
%clf;
subplot(122)
q=linspace(0,2.4);plot(q/2.4,10*(q/max(q)).^2.5);hold on;plot(q/2.4,10*(exp(q)-1)/(exp(max(q))-1),'--');axis('square')
%axis([0,2.4,0,1])
title('DYNAMIC RANGE EXPANDERS')
xlabel('renormalized signal level, f1')
ylabel('photoquantity, q')
text(.25,2,'antilog');text(.42,1,'power law')
subplot(122)

