mirror of
https://github.com/AllenDowney/AstronomicalData.git
synced 2025-12-25 12:25:06 -08:00
Update documentation
This commit is contained in:
25
07_plot.html
25
07_plot.html
@@ -242,11 +242,6 @@
|
||||
Outline
|
||||
</a>
|
||||
</li>
|
||||
<li class="toc-h2 nav-item toc-entry">
|
||||
<a class="reference internal nav-link" href="#installing-libraries">
|
||||
Installing libraries
|
||||
</a>
|
||||
</li>
|
||||
<li class="toc-h2 nav-item toc-entry">
|
||||
<a class="reference internal nav-link" href="#making-figures-that-tell-a-story">
|
||||
Making Figures That Tell a Story
|
||||
@@ -354,26 +349,6 @@
|
||||
<li><p>Generate a figure with multiple subplots.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="installing-libraries">
|
||||
<h2>Installing libraries<a class="headerlink" href="#installing-libraries" title="Permalink to this headline">¶</a></h2>
|
||||
<p>If you are running this notebook on Colab, you can run the following cell to install Astroquery and a the other libraries we’ll use.</p>
|
||||
<p>If you are running this notebook on your own computer, you might have to install these libraries yourself.</p>
|
||||
<p>If you are using this notebook as part of a Carpentries workshop, you should have received setup instructions.</p>
|
||||
<p>TODO: Add a link to the instructions.</p>
|
||||
<div class="cell docutils container">
|
||||
<div class="cell_input docutils container">
|
||||
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># If we're running on Colab, install libraries</span>
|
||||
|
||||
<span class="kn">import</span> <span class="nn">sys</span>
|
||||
<span class="n">IN_COLAB</span> <span class="o">=</span> <span class="s1">'google.colab'</span> <span class="ow">in</span> <span class="n">sys</span><span class="o">.</span><span class="n">modules</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">IN_COLAB</span><span class="p">:</span>
|
||||
<span class="o">!</span>pip install astroquery astro-gala pyia python-wget
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="making-figures-that-tell-a-story">
|
||||
<h2>Making Figures That Tell a Story<a class="headerlink" href="#making-figures-that-tell-a-story" title="Permalink to this headline">¶</a></h2>
|
||||
<p>So far the figure we’ve made have been “quick and dirty”. Mostly we have used Matplotlib’s default style, although we have adjusted a few parameters, like <code class="docutils literal notranslate"><span class="pre">markersize</span></code> and <code class="docutils literal notranslate"><span class="pre">alpha</span></code>, to improve legibility.</p>
|
||||
|
||||
Reference in New Issue
Block a user