>
<span class="sd">    &gt;&gt;&gt; plt.savefig(&#39;source_redshift_distribution.png&#39;)</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="c1"># get gw params from json file if not provided</span>
    <span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">param_dict</span><span class="p">)</span> <span class="o">==</span> <span class="nb">str</span><span class="p">:</span>
        <span class="nb">print</span><span class="p">(</span><span class