You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: appendix/template.html
+3-3
Original file line number
Diff line number
Diff line change
@@ -885,8 +885,8 @@ <h5>of further and further<a class="headerlink" href="#of-further-and-further" t
885
885
<divclass="section" id="header-levels">
886
886
<h6>header levels<aclass="headerlink" href="#header-levels" title="Permalink to this headline"><iclass="fas fa-link"></i></a></h6>
887
887
<p>Each section in your notebook can also contain <spanclass="math notranslate nohighlight">\(\LaTeX\)</span> equations, enabled through MathJax. In the following example, we illustrate some sample MathJax equations. (Rendering instructions, as well as detailed information about MathJax, can be found in <aclass="reference external" href="https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Typesetting%20Equations.html">this documentation</a>.)</p>
888
-
<divclass="amsmath math notranslate nohighlight" id="equation-508a2cbf-82a9-4a5b-8f52-05dfc3d9479b">
889
-
<spanclass="eqno">(1)<aclass="headerlink" href="#equation-508a2cbf-82a9-4a5b-8f52-05dfc3d9479b" title="Permalink to this equation"><iclass="fas fa-link"></i></a></span>\[\begin{align}
888
+
<divclass="amsmath math notranslate nohighlight" id="equation-58a5c812-55cc-49ab-8472-ddd912ca3eed">
889
+
<spanclass="eqno">(1)<aclass="headerlink" href="#equation-58a5c812-55cc-49ab-8472-ddd912ca3eed" title="Permalink to this equation"><iclass="fas fa-link"></i></a></span>\[\begin{align}
890
890
\dot{x} & = \sigma(y-x) \\
891
891
\dot{y} & = \rho x - y - xz \\
892
892
\dot{z} & = -\beta z + xy
@@ -1095,7 +1095,7 @@ <h1>Contribute</h1>
1095
1095
1096
1096
By the <ahref="https://projectpythia.org/">Project Pythia</a> Community.
<p>We can change which colormap to use by setting the keyword argument <codeclass="docutils literal notranslate"><spanclass="pre">cmap</span><spanclass="pre">=</span><spanclass="pre">'colormap_name'</span></code> in the plotting function call. This sets the colormap not only for the plot, but for the colorbar as well. In this case, we use the <codeclass="docutils literal notranslate"><spanclass="pre">magma</span></code> colormap:</p>
<p>You may be wondering why the call to <codeclass="docutils literal notranslate"><spanclass="pre">fig.colorbar</span></code> uses the argument <codeclass="docutils literal notranslate"><spanclass="pre">hist1[3]</span></code>. The explanation is as follows: <codeclass="docutils literal notranslate"><spanclass="pre">hist1</span></code> is a tuple returned by <codeclass="docutils literal notranslate"><spanclass="pre">hist2d</span></code>, and <codeclass="docutils literal notranslate"><spanclass="pre">hist1[3]</span></code> contains a <codeclass="docutils literal notranslate"><spanclass="pre">matplotlib.collections.QuadMesh</span></code> that points to the colormap for the first histogram. To make sure that both histograms are using the same colormap with the same range of values, <codeclass="docutils literal notranslate"><spanclass="pre">vmax</span></code> is set to 0.18 for both plots. This ensures that both histograms are using colormaps that represent values from 0 (the default for histograms) to 0.18. Because the same data values are used for both plots, it doesn’t matter whether we pass in <codeclass="docutils literal notranslate"><spanclass="pre">hist1[3]</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">hist2[3]</span></code> to <codeclass="docutils literal notranslate"><spanclass="pre">fig.colorbar</span></code>.
0 commit comments