Decibel scale, with some intuitive examples.
% Author: Izaak Neutelings (May 2020)\documentclass[border=3pt,tikz]{standalone}\tikzset{>=latex} % for LaTeX arrow head\usepackage{etoolbox} % ifthen\usepackage{xcolor}\usepackage{physics}\usepackage{siunitx}\colorlet{myblue}{blue!50!black}\colorlet{mypurple}{blue!40!red!95!black}\colorlet{mygreen}{green!70!black!60}\colorlet{myyellow}{yellow!90!black!60}\colorlet{myred}{red!80!black!60}\pgfdeclareverticalshading{rainbow}{100bp}{color(0bp)=(red); color(25bp)=(red); color(35bp)=(yellow);color(45bp)=(green); color(55bp)=(cyan); color(65bp)=(blue);color(75bp)=(violet); color(100bp)=(violet)}\begin{document}% SOUND DECIBEL SCALE\begin{tikzpicture}[xscale=0.12]\def\h{0.68}\def\tick#1#2#3{\draw[thick,#2] (#1+.09) --++ (0,-.18) node[below=-2pt,scale=1] {\strut #3};}% COLOR GRADIENT\fill[left color=white,right color=mygreen](-7,0) rectangle (10,\h);\fill[mygreen] (10,0) rectangle (80,\h);\fill[left color=mygreen,right color=myyellow](75,0) rectangle (85,\h);\fill[left color=myyellow,right color=myred](85,0) rectangle (125,\h);\fill[left color=myred,right color=black!85](125,0) rectangle (140,\h);% DECIBEL
Click to download: wave_decibel_scale.tex • wave_decibel_scale.pdf
Open in Overleaf: wave_decibel_scale.tex