Skip to content

Commit

Permalink
Work with matplotlib >= v3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuntz committed Jul 10, 2024
1 parent 3e5d36e commit f5abb77
Show file tree
Hide file tree
Showing 34 changed files with 225 additions and 144 deletions.
2 changes: 1 addition & 1 deletion docs/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: d1920ca5509cf7fe26ac6b1294a7557a
config: 7c07df56c7e585943f0ca8b4ecb99ae8
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions docs/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../_static/documentation_options.js?v=123f6dac"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/documentation_options.js?v=5fbe096f"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/scripts/sphinx-book-theme.js?v=efea14e4"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/index';</script>
Expand Down
7 changes: 4 additions & 3 deletions docs/html/_modules/ncvue/ncvcontour.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../../_static/documentation_options.js?v=123f6dac"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/documentation_options.js?v=5fbe096f"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/sphinx-book-theme.js?v=efea14e4"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/ncvue/ncvcontour';</script>
Expand Down Expand Up @@ -341,6 +341,7 @@ <h1>Source code for ncvue.ncvcontour</h1><div class="highlight"><pre>
<span class="sd"> * Allow multiple netcdf files, Jan 2024, Matthias Cuntz</span>
<span class="sd"> * Move images/ directory from src/ncvue/ to src/ directory,</span>
<span class="sd"> Jan 2024, Matthias Cuntz</span>
<span class="sd"> * Move themes/ and images/ back to src/ncvue/, Feb 2024, Matthias Cuntz</span>

<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">os</span>
Expand Down Expand Up @@ -459,7 +460,7 @@ <h1>Source code for ncvue.ncvcontour</h1><div class="highlight"><pre>
<span class="n">bundle_dir</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">sys</span><span class="p">,</span> <span class="s1">&#39;_MEIPASS&#39;</span><span class="p">,</span>
<span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="vm">__file__</span><span class="p">)))</span>
<span class="bp">self</span><span class="o">.</span><span class="n">imaps</span> <span class="o">=</span> <span class="p">[</span> <span class="n">tk</span><span class="o">.</span><span class="n">PhotoImage</span><span class="p">(</span><span class="n">file</span><span class="o">=</span><span class="n">bundle_dir</span> <span class="o">+</span>
<span class="s1">&#39;/../images/&#39;</span> <span class="o">+</span> <span class="n">i</span> <span class="o">+</span> <span class="s1">&#39;.png&#39;</span><span class="p">)</span>
<span class="s1">&#39;/images/&#39;</span> <span class="o">+</span> <span class="n">i</span> <span class="o">+</span> <span class="s1">&#39;.png&#39;</span><span class="p">)</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">cmaps</span> <span class="p">]</span>

<span class="c1"># 1. row</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/_modules/ncvue/ncvmain.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../../_static/documentation_options.js?v=123f6dac"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/documentation_options.js?v=5fbe096f"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/sphinx-book-theme.js?v=efea14e4"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/ncvue/ncvmain';</script>
Expand Down
11 changes: 7 additions & 4 deletions docs/html/_modules/ncvue/ncvmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../../_static/documentation_options.js?v=123f6dac"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/documentation_options.js?v=5fbe096f"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/sphinx-book-theme.js?v=efea14e4"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/ncvue/ncvmap';</script>
Expand Down Expand Up @@ -346,6 +346,9 @@ <h1>Source code for ncvue.ncvmap</h1><div class="highlight"><pre>
<span class="sd"> * Move images/ directory from src/ncvue/ to src/ directory,</span>
<span class="sd"> Jan 2024, Matthias Cuntz</span>
<span class="sd"> * Added borders, rivers, and lakes checkbuttons, Feb 2024, Matthias Cuntz</span>
<span class="sd"> * Move themes/ and images/ back to src/ncvue/, Feb 2024, Matthias Cuntz</span>
<span class="sd"> * Use matplotlib.colormaps[name] instead of</span>
<span class="sd"> matplotlib.colormaps.get_cmap(name), Jul 2024, Matthias Cuntz</span>

<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">os</span>
Expand Down Expand Up @@ -480,7 +483,7 @@ <h1>Source code for ncvue.ncvmap</h1><div class="highlight"><pre>
<span class="n">bundle_dir</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">sys</span><span class="p">,</span> <span class="s1">&#39;_MEIPASS&#39;</span><span class="p">,</span>
<span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="vm">__file__</span><span class="p">)))</span>
<span class="bp">self</span><span class="o">.</span><span class="n">imaps</span> <span class="o">=</span> <span class="p">[</span> <span class="n">tk</span><span class="o">.</span><span class="n">PhotoImage</span><span class="p">(</span><span class="n">file</span><span class="o">=</span><span class="n">bundle_dir</span> <span class="o">+</span>
<span class="s1">&#39;/../images/&#39;</span> <span class="o">+</span> <span class="n">i</span> <span class="o">+</span> <span class="s1">&#39;.png&#39;</span><span class="p">)</span>
<span class="s1">&#39;/images/&#39;</span> <span class="o">+</span> <span class="n">i</span> <span class="o">+</span> <span class="s1">&#39;.png&#39;</span><span class="p">)</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">cmaps</span> <span class="p">]</span>

<span class="c1"># only projections with keyword: central_longitude</span>
Expand Down Expand Up @@ -1689,7 +1692,7 @@ <h1>Source code for ncvue.ncvmap</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">ivmin</span> <span class="o">=</span> <span class="n">vmin</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ivmax</span> <span class="o">=</span> <span class="n">vmax</span>
<span class="bp">self</span><span class="o">.</span><span class="n">icmap</span> <span class="o">=</span> <span class="n">cmap</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ncmap</span> <span class="o">=</span> <span class="n">mpl</span><span class="o">.</span><span class="n">cm</span><span class="o">.</span><span class="n">get_cmap</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">icmap</span><span class="p">)</span><span class="o">.</span><span class="n">N</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ncmap</span> <span class="o">=</span> <span class="n">mpl</span><span class="o">.</span><span class="n">colormaps</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">icmap</span><span class="p">]</span><span class="o">.</span><span class="n">N</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ncmap</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">ncmap</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">ncmap</span> <span class="o">&lt;</span> <span class="mi">256</span> <span class="k">else</span> <span class="mi">15</span>
<span class="bp">self</span><span class="o">.</span><span class="n">iextend</span> <span class="o">=</span> <span class="n">extend</span>
<span class="k">if</span> <span class="n">mesh</span><span class="p">:</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/_modules/ncvue/ncvmethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../../_static/documentation_options.js?v=123f6dac"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/documentation_options.js?v=5fbe096f"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/sphinx-book-theme.js?v=efea14e4"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/ncvue/ncvmethods';</script>
Expand Down
5 changes: 3 additions & 2 deletions docs/html/_modules/ncvue/ncvscatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="../../_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>

<script src="../../_static/documentation_options.js?v=123f6dac"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/documentation_options.js?v=5fbe096f"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/sphinx-book-theme.js?v=efea14e4"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/ncvue/ncvscatter';</script>
Expand Down Expand Up @@ -341,6 +341,7 @@ <h1>Source code for ncvue.ncvscatter</h1><div class="highlight"><pre>
<span class="sd"> * Address fi.variables[name] directly by fi[name], Jan 2024, Matthias Cuntz</span>
<span class="sd"> * Allow groups in netcdf files, Jan 2024, Matthias Cuntz</span>
<span class="sd"> * Allow multiple netcdf files, Jan 2024, Matthias Cuntz</span>
<span class="sd"> * Move themes/ and images/ back to src/ncvue/, Feb 2024, Matthias Cuntz</span>

<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">tkinter</span> <span class="k">as</span> <span class="nn">tk</span>
Expand Down
Loading

0 comments on commit f5abb77

Please sign in to comment.