How to draw IIRCoefficients as curve line realtime when param changes

Hi:

In almost EQ plugin, we can render a fliter as curve line based on param frequency and Q, but I am can not quick understand how to convert param Q to curve param.