Skip to content

Commit

Permalink
deploy: 2c6afa2
Browse files Browse the repository at this point in the history
  • Loading branch information
SahitiSarva committed Nov 9, 2023
1 parent 8d8d92b commit c4ad6e6
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 127 additions & 9 deletions _sources/notebooks/air-pollution/air-pollution.ipynb

Large diffs are not rendered by default.

41 changes: 36 additions & 5 deletions notebooks/air-pollution/air-pollution.html
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,37 @@ <h2>References<a class="headerlink" href="#references" title="Permalink to this
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">fig</span><span class="p">,</span> <span class="n">ax</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplots</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="n">figsize</span> <span class="o">=</span> <span class="p">(</span><span class="mi">18</span><span class="p">,</span><span class="mi">6</span><span class="p">))</span>
<span class="n">plt</span><span class="o">.</span><span class="n">rcParams</span><span class="p">[</span><span class="s2">&quot;font.family&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;georgia&quot;</span>

<span class="k">for</span> <span class="nb">id</span><span class="p">,</span> <span class="n">date</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">([</span><span class="s1">&#39;2022-01-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2022-06-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2022-11-01&#39;</span><span class="p">]):</span>
<span class="k">if</span> <span class="nb">id</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span>
<span class="n">legend_bool</span> <span class="o">=</span> <span class="kc">True</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">legend_bool</span> <span class="o">=</span> <span class="kc">False</span>
<span class="n">monthly_no2_shp</span><span class="p">[</span><span class="n">monthly_no2_shp</span><span class="p">[</span><span class="s1">&#39;date_y&#39;</span><span class="p">]</span><span class="o">==</span><span class="n">date</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">column</span> <span class="o">=</span> <span class="s1">&#39;NO2_column_number_density&#39;</span><span class="p">,</span> <span class="n">legend</span> <span class="o">=</span> <span class="n">legend_bool</span><span class="p">,</span><span class="n">vmin</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">vmax</span> <span class="o">=</span> <span class="mf">0.00027</span><span class="p">,</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax</span><span class="p">[</span><span class="nb">id</span><span class="p">],</span> <span class="n">cmap</span><span class="o">=</span><span class="s1">&#39;Blues&#39;</span><span class="p">)</span>
<span class="n">ax</span><span class="p">[</span><span class="nb">id</span><span class="p">]</span><span class="o">.</span><span class="n">axis</span><span class="p">(</span><span class="s1">&#39;off&#39;</span><span class="p">)</span>
<span class="n">ax</span><span class="p">[</span><span class="nb">id</span><span class="p">]</span><span class="o">.</span><span class="n">set_title</span><span class="p">(</span><span class="n">date</span><span class="p">)</span>

<span class="n">plt</span><span class="o">.</span><span class="n">suptitle</span><span class="p">(</span><span class="s1">&#39;Average Monthly Air Pollution in Admin 2 regions&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
</details>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Text(0.5, 0.98, &#39;Average Monthly Air Pollution in Admin 2 regions&#39;)
</pre></div>
</div>
<img alt="../../_images/2a9db8107c413bc841fd5ccfdf04235ca3e9261bf07188462080776e4afd587a.png" src="../../_images/2a9db8107c413bc841fd5ccfdf04235ca3e9261bf07188462080776e4afd587a.png" />
</div>
</div>
<div class="cell tag_hide-input docutils container">
<details class="hide above-input">
<summary aria-label="Toggle hidden content">
<span class="collapsed">Show code cell source</span>
<span class="expanded">Hide code cell source</span>
</summary>
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">fig</span><span class="p">,</span> <span class="n">ax</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplots</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="n">figsize</span> <span class="o">=</span> <span class="p">(</span><span class="mi">18</span><span class="p">,</span><span class="mi">6</span><span class="p">))</span>
<span class="n">plt</span><span class="o">.</span><span class="n">rcParams</span><span class="p">[</span><span class="s2">&quot;font.family&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;georgia&quot;</span>

<span class="k">for</span> <span class="nb">id</span><span class="p">,</span> <span class="n">date</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">([</span><span class="s1">&#39;2023-01-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2023-06-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2023-10-01&#39;</span><span class="p">]):</span>
<span class="k">if</span> <span class="nb">id</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span>
<span class="n">legend_bool</span> <span class="o">=</span> <span class="kc">True</span>
Expand Down Expand Up @@ -1136,25 +1167,25 @@ <h2>References<a class="headerlink" href="#references" title="Permalink to this
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">fig</span><span class="p">,</span> <span class="n">ax</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplots</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="n">figsize</span> <span class="o">=</span> <span class="p">(</span><span class="mi">18</span><span class="p">,</span><span class="mi">6</span><span class="p">))</span>
<span class="n">plt</span><span class="o">.</span><span class="n">rcParams</span><span class="p">[</span><span class="s2">&quot;font.family&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;georgia&quot;</span>

<span class="k">for</span> <span class="nb">id</span><span class="p">,</span> <span class="n">date</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">([</span><span class="s1">&#39;2022-01-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2022-06-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2022-11-01&#39;</span><span class="p">]):</span>
<span class="k">for</span> <span class="nb">id</span><span class="p">,</span> <span class="n">date</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">([</span><span class="s1">&#39;2023-01-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2023-06-01&#39;</span><span class="p">,</span> <span class="s1">&#39;2023-10-01&#39;</span><span class="p">]):</span>
<span class="k">if</span> <span class="nb">id</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span>
<span class="n">legend_bool</span> <span class="o">=</span> <span class="kc">True</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">legend_bool</span> <span class="o">=</span> <span class="kc">False</span>
<span class="n">monthly_no2_shp</span><span class="p">[</span><span class="n">monthly_no2_shp</span><span class="p">[</span><span class="s1">&#39;date_y&#39;</span><span class="p">]</span><span class="o">==</span><span class="n">date</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">column</span> <span class="o">=</span> <span class="s1">&#39;NO2_column_number_density&#39;</span><span class="p">,</span> <span class="n">legend</span> <span class="o">=</span> <span class="n">legend_bool</span><span class="p">,</span><span class="n">vmin</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">vmax</span> <span class="o">=</span> <span class="mf">0.00027</span><span class="p">,</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax</span><span class="p">[</span><span class="nb">id</span><span class="p">],</span> <span class="n">cmap</span><span class="o">=</span><span class="s1">&#39;Blues&#39;</span><span class="p">)</span>
<span class="n">beirut_no2</span><span class="p">[</span><span class="n">beirut_no2</span><span class="p">[</span><span class="s1">&#39;date&#39;</span><span class="p">]</span><span class="o">==</span><span class="n">date</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">column</span> <span class="o">=</span> <span class="s1">&#39;NO2_column_number_density&#39;</span><span class="p">,</span> <span class="n">legend</span> <span class="o">=</span> <span class="n">legend_bool</span><span class="p">,</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax</span><span class="p">[</span><span class="nb">id</span><span class="p">],</span><span class="n">vmin</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">vmax</span> <span class="o">=</span> <span class="mf">0.00035</span><span class="p">,</span> <span class="n">cmap</span><span class="o">=</span><span class="s1">&#39;Blues&#39;</span><span class="p">)</span>
<span class="n">ax</span><span class="p">[</span><span class="nb">id</span><span class="p">]</span><span class="o">.</span><span class="n">axis</span><span class="p">(</span><span class="s1">&#39;off&#39;</span><span class="p">)</span>
<span class="n">ax</span><span class="p">[</span><span class="nb">id</span><span class="p">]</span><span class="o">.</span><span class="n">set_title</span><span class="p">(</span><span class="n">date</span><span class="p">)</span>

<span class="n">plt</span><span class="o">.</span><span class="n">suptitle</span><span class="p">(</span><span class="s1">&#39;Average Monthly Air Pollution in Admin 2 regions&#39;</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">suptitle</span><span class="p">(</span><span class="s1">&#39;Average Monthly Air Pollution in Beirut&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
</details>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Text(0.5, 0.98, &#39;Average Monthly Air Pollution in Admin 2 regions&#39;)
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Text(0.5, 0.98, &#39;Average Monthly Air Pollution in Beirut&#39;)
</pre></div>
</div>
<img alt="../../_images/2a9db8107c413bc841fd5ccfdf04235ca3e9261bf07188462080776e4afd587a.png" src="../../_images/2a9db8107c413bc841fd5ccfdf04235ca3e9261bf07188462080776e4afd587a.png" />
<img alt="../../_images/2ce8dace9aeabe2ff67378cdd1af0a37d92c1495bf1e603473941318f27a3b1b.png" src="../../_images/2ce8dace9aeabe2ff67378cdd1af0a37d92c1495bf1e603473941318f27a3b1b.png" />
</div>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit c4ad6e6

Please sign in to comment.