Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c12de6

Browse files
committed
updating colormaps and docs for cmocean
1 parent 48b51ba commit 3c12de6

File tree

107 files changed

+425
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+425
-411
lines changed
-14.8 KB
-24 KB
-19.6 KB
73.8 KB
-163 KB
18.5 KB
104 KB
7.58 KB
441 KB

cmocean/_images/index-1.png

-8.77 KB

cmocean/_images/index-10.png

2.99 KB

cmocean/_images/index-11.png

-1.37 KB

cmocean/_images/index-12.png

-1.16 KB

cmocean/_images/index-2.png

3.11 KB

cmocean/_images/index-3.png

-459 Bytes

cmocean/_images/index-4.png

-778 Bytes

cmocean/_images/index-5.png

690 Bytes

cmocean/_images/index-6.png

39 Bytes

cmocean/_images/index-7.png

-18.5 KB

cmocean/_images/index-8.png

-1.07 KB

cmocean/_images/index-9.png

17.7 KB

cmocean/_sources/index.txt

Lines changed: 179 additions & 130 deletions
Large diffs are not rendered by default.

cmocean/cmocean.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ <h2>cmocean.cmocean module<a class="headerlink" href="#cmocean-cmocean-module" t
110110
</div>
111111
<div class="section" id="module-cmocean.tools">
112112
<span id="cmocean-tools-module"></span><h2>cmocean.tools module<a class="headerlink" href="#module-cmocean.tools" title="Permalink to this headline"></a></h2>
113-
<p>Plot up stuff with colormaps:
114-
colormap gallery
115-
lightness
116-
sample MCH data with each colormap.</p>
113+
<p>Plot up stuff with colormaps.</p>
117114
<dl class="function">
118115
<dt id="cmocean.tools.cmap">
119116
<code class="descclassname">cmocean.tools.</code><code class="descname">cmap</code><span class="sig-paren">(</span><em>rgbin</em>, <em>N=256</em><span class="sig-paren">)</span><a class="headerlink" href="#cmocean.tools.cmap" title="Permalink to this definition"></a></dt>
@@ -144,7 +141,7 @@ <h2>cmocean.cmocean module<a class="headerlink" href="#cmocean-cmocean-module" t
144141

145142
<dl class="function">
146143
<dt id="cmocean.tools.print_colormaps">
147-
<code class="descclassname">cmocean.tools.</code><code class="descname">print_colormaps</code><span class="sig-paren">(</span><em>cmaps</em>, <em>returnrgb=False</em><span class="sig-paren">)</span><a class="headerlink" href="#cmocean.tools.print_colormaps" title="Permalink to this definition"></a></dt>
144+
<code class="descclassname">cmocean.tools.</code><code class="descname">print_colormaps</code><span class="sig-paren">(</span><em>cmaps</em>, <em>N=256</em>, <em>returnrgb=True</em>, <em>savefiles=False</em><span class="sig-paren">)</span><a class="headerlink" href="#cmocean.tools.print_colormaps" title="Permalink to this definition"></a></dt>
148145
<dd><p>Print colormaps in 256 RGB colors to text files.</p>
149146
<table class="docutils field-list" frame="void" rules="none">
150147
<col class="field-name" />

cmocean/colormaps_viscm-1_00.pdf

0 Bytes
Binary file not shown.

cmocean/colormaps_viscm-1_01.pdf

0 Bytes
Binary file not shown.

cmocean/colormaps_viscm-1_02.pdf

0 Bytes
Binary file not shown.

cmocean/colormaps_viscm-1_03.pdf

0 Bytes
Binary file not shown.

cmocean/colormaps_viscm-1_04.pdf

0 Bytes
Binary file not shown.
-6.98 KB

cmocean/colormaps_viscm-1_05.pdf

-48 KB
Binary file not shown.

cmocean/colormaps_viscm-1_05.png

-14.8 KB

cmocean/colormaps_viscm-1_06.pdf

0 Bytes
Binary file not shown.

cmocean/colormaps_viscm-1_07.pdf

0 Bytes
Binary file not shown.

cmocean/colormaps_viscm-1_08.pdf

0 Bytes
Binary file not shown.

cmocean/colormaps_viscm-1_09.pdf

0 Bytes
Binary file not shown.
-82 KB

cmocean/colormaps_viscm-1_10.pdf

-69 KB
Binary file not shown.

cmocean/colormaps_viscm-1_10.png

-24 KB
-70.6 KB

cmocean/colormaps_viscm-1_11.pdf

-23.4 KB
Binary file not shown.

cmocean/colormaps_viscm-1_11.png

-19.6 KB
288 KB

cmocean/colormaps_viscm-1_12.pdf

197 KB
Binary file not shown.

cmocean/colormaps_viscm-1_12.png

73.8 KB
-653 KB

cmocean/colormaps_viscm-1_13.pdf

-483 KB
Binary file not shown.

cmocean/colormaps_viscm-1_13.png

-163 KB
84.8 KB

cmocean/colormaps_viscm-1_14.pdf

88.9 KB
Binary file not shown.

cmocean/colormaps_viscm-1_14.png

18.5 KB
393 KB

cmocean/colormaps_viscm-1_15.pdf

279 KB
Binary file not shown.

cmocean/colormaps_viscm-1_15.png

104 KB
23.6 KB

cmocean/colormaps_viscm-1_16.pdf

27.3 KB
Binary file not shown.

cmocean/colormaps_viscm-1_16.png

7.58 KB
1.59 MB

cmocean/colormaps_viscm-1_17.pdf

1.01 MB
Binary file not shown.

cmocean/colormaps_viscm-1_17.png

441 KB

cmocean/colormaps_viscm.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@
115115
<img alt="_images/colormaps_viscm-1_16.png" src="_images/colormaps_viscm-1_16.png" />
116116
<p class="caption"><span class="caption-text">(<a class="reference external" href=".//colormaps_viscm-1_16.png">png</a>, <a class="reference external" href=".//colormaps_viscm-1_16.hires.png">hires.png</a>, <a class="reference external" href=".//colormaps_viscm-1_16.pdf">pdf</a>)</span></p>
117117
</div>
118+
<div class="figure" id="id18">
119+
<img alt="_images/colormaps_viscm-1_17.png" src="_images/colormaps_viscm-1_17.png" />
120+
<p class="caption"><span class="caption-text">(<a class="reference external" href=".//colormaps_viscm-1_17.png">png</a>, <a class="reference external" href=".//colormaps_viscm-1_17.hires.png">hires.png</a>, <a class="reference external" href=".//colormaps_viscm-1_17.pdf">pdf</a>)</span></p>
121+
</div>
118122
</div>
119123

120124

cmocean/index-1.hires.png

-12.6 KB

cmocean/index-1.pdf

1.98 KB
Binary file not shown.

cmocean/index-1.png

-8.77 KB

cmocean/index-10.hires.png

9.39 KB

cmocean/index-10.pdf

-2.55 KB
Binary file not shown.

cmocean/index-10.png

2.99 KB

cmocean/index-10.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
fig = plt.figure(figsize=(8, 3))
55
ax = fig.add_subplot(1, 2, 1)
6-
cmocean.plots.test(cmocean.cm.period, ax=ax)
6+
cmocean.plots.test(cmocean.cm.thermal, ax=ax)
77
ax = fig.add_subplot(1, 2, 2)
8-
cmocean.plots.quick_plot(cmocean.cm.period, ax=ax)
8+
cmocean.plots.quick_plot(cmocean.cm.algae, ax=ax)

cmocean/index-11.hires.png

-2.11 KB

cmocean/index-11.pdf

-6.7 KB
Binary file not shown.

cmocean/index-11.png

-1.37 KB

cmocean/index-11.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
fig = plt.figure(figsize=(8, 3))
55
ax = fig.add_subplot(1, 2, 1)
6-
cmocean.plots.test(cmocean.cm.temp, ax=ax)
6+
cmocean.plots.test(cmocean.cm.gray, ax=ax)
77
ax = fig.add_subplot(1, 2, 2)
8-
cmocean.plots.quick_plot(cmocean.cm.chl, ax=ax)
8+
cmocean.plots.test(cmocean.cm.gray_r, ax=ax)
9+
fig.tight_layout()

cmocean/index-12.hires.png

-3.02 KB

cmocean/index-12.pdf

-837 Bytes
Binary file not shown.

cmocean/index-12.png

-1.16 KB

cmocean/index-2.hires.png

6.3 KB

cmocean/index-2.pdf

2.58 KB
Binary file not shown.

cmocean/index-2.png

3.11 KB

cmocean/index-3.hires.png

-2.26 KB

cmocean/index-3.pdf

-2 Bytes
Binary file not shown.

cmocean/index-3.png

-459 Bytes

cmocean/index-3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import cmocean
2-
cmocean.plots.wrap_viscm(cmocean.cm.salt)
2+
cmocean.plots.wrap_viscm(cmocean.cm.haline)

cmocean/index-4.hires.png

-2.76 KB

cmocean/index-4.pdf

-2.58 KB
Binary file not shown.

cmocean/index-4.png

-778 Bytes

cmocean/index-4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
fig = plt.figure(figsize=(8, 3))
55
ax = fig.add_subplot(1, 2, 1)
6-
cmocean.plots.test(cmocean.cm.bathy, ax=ax)
6+
cmocean.plots.test(cmocean.cm.gray, ax=ax)
77
ax = fig.add_subplot(1, 2, 2)
8-
cmocean.plots.quick_plot(cmocean.cm.bathy, ax=ax)
8+
cmocean.plots.quick_plot(cmocean.cm.gray, ax=ax)

cmocean/index-5.hires.png

697 Bytes

cmocean/index-5.pdf

-2.87 KB
Binary file not shown.

cmocean/index-5.png

690 Bytes

cmocean/index-5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
fig = plt.figure(figsize=(8, 3))
55
ax = fig.add_subplot(1, 2, 1)
6-
cmocean.plots.test(cmocean.cm.grey, ax=ax)
6+
cmocean.plots.test(cmocean.cm.deep, ax=ax)
77
ax = fig.add_subplot(1, 2, 2)
8-
cmocean.plots.quick_plot(cmocean.cm.grey, ax=ax)
8+
cmocean.plots.quick_plot(cmocean.cm.deep, ax=ax)

cmocean/index-6.hires.png

444 Bytes

cmocean/index-6.pdf

-1.66 KB
Binary file not shown.

cmocean/index-6.png

39 Bytes

cmocean/index-6.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
fig = plt.figure(figsize=(8, 3))
55
ax = fig.add_subplot(1, 2, 1)
6-
cmocean.plots.test(cmocean.cm.par, ax=ax)
6+
cmocean.plots.test(cmocean.cm.turbid, ax=ax)
77
ax = fig.add_subplot(1, 2, 2)
8-
cmocean.plots.quick_plot(cmocean.cm.par, ax=ax)
8+
cmocean.plots.quick_plot(cmocean.cm.turbid, ax=ax)

cmocean/index-7.hires.png

-49.1 KB

cmocean/index-7.pdf

-443 KB
Binary file not shown.

cmocean/index-7.png

-18.5 KB

cmocean/index-7.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import cmocean
22
import matplotlib.pyplot as plt
3-
import numpy as np
43

5-
azimuths = np.arange(0, 361, 1)
6-
zeniths = np.arange(40, 70, 1)
7-
values = azimuths * np.ones((30, 361))
8-
fig, ax = plt.subplots(subplot_kw=dict(projection='polar'))
9-
ax.pcolormesh(azimuths*np.pi/180.0, zeniths, values, cmap=cmocean.cm.phase)
10-
ax.set_yticks([])
4+
fig = plt.figure(figsize=(8, 3))
5+
ax = fig.add_subplot(1, 2, 1)
6+
cmocean.plots.test(cmocean.cm.amp, ax=ax)
7+
ax = fig.add_subplot(1, 2, 2)
8+
cmocean.plots.quick_plot(cmocean.cm.amp, ax=ax)

cmocean/index-8.hires.png

-5.15 KB

cmocean/index-8.pdf

-2.7 KB
Binary file not shown.

cmocean/index-8.png

-1.07 KB

cmocean/index-8.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
fig = plt.figure(figsize=(8, 3))
55
ax = fig.add_subplot(1, 2, 1)
6-
cmocean.plots.test(cmocean.cm.turb, ax=ax)
6+
cmocean.plots.test(cmocean.cm.tempo, ax=ax)
77
ax = fig.add_subplot(1, 2, 2)
8-
cmocean.plots.quick_plot(cmocean.cm.turb, ax=ax)
8+
cmocean.plots.quick_plot(cmocean.cm.tempo, ax=ax)

cmocean/index-9.hires.png

45.6 KB

cmocean/index-9.pdf

441 KB
Binary file not shown.

cmocean/index-9.png

17.7 KB

cmocean/index-9.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import cmocean
22
import matplotlib.pyplot as plt
3+
import numpy as np
34

4-
fig = plt.figure(figsize=(8, 3))
5-
ax = fig.add_subplot(1, 2, 1)
6-
cmocean.plots.test(cmocean.cm.swh, ax=ax)
7-
ax = fig.add_subplot(1, 2, 2)
8-
cmocean.plots.quick_plot(cmocean.cm.swh, ax=ax)
5+
azimuths = np.arange(0, 361, 1)
6+
zeniths = np.arange(40, 70, 1)
7+
values = azimuths * np.ones((30, 361))
8+
fig, ax = plt.subplots(subplot_kw=dict(projection='polar'))
9+
ax.pcolormesh(azimuths*np.pi/180.0, zeniths, values, cmap=cmocean.cm.phase)
10+
ax.set_yticks([])

0 commit comments

Comments
 (0)