Skip to content

Commit a3af2e4

Browse files
authored
Merge pull request #57 from kthyng/master
cpt-city update and some docs
2 parents 6c79b00 + 5864f60 commit a3af2e4

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Besides Python, the cmocean colormaps are also available for:
88
* For `MATLAB <http://www.mathworks.com/matlabcentral/fileexchange/57773-cmocean-perceptually-uniform-colormaps>`_ by `Chad Greene <http://www.chadagreene.com/>`_
99
* For R: `Oce <http://dankelley.github.io/oce/>`_ oceanographic analysis package by `Dan Kelley <http://www.dal.ca/faculty/science/oceanography/people/faculty/daniel-e-kelley.html>`_ and `Clark Richards <http://clarkrichards.org/>`_
1010
* For `Ocean Data Viewer <https://github.com/kthyng/cmocean-odv>`_
11-
* For `Generic Mapping Tools (GMT) <https://github.com/kthyng/cmocean-gmt>`_
11+
* For Generic Mapping Tools (GMT) at `cpt-city <http://soliton.vm.bytemark.co.uk/pub/cpt-city/cmocean/index.html>`_ and on `github <https://github.com/kthyng/cmocean-gmt>`_
1212
* For `Paraview <https://github.com/kthyng/cmocean-paraview>`_, inspired by `Phillip Wolfram <https://github.com/pwolfram>`_.
1313
* In `Plotly <https://plot.ly/python/cmocean-colorscales/>`_
1414
* Chad Greene's `Antartic Mapping Tools <http://www.mathworks.com/matlabcentral/fileexchange/47638-antarctic-mapping-tools>`_ in Matlab uses cmocean

docs/source/index.rst

+9-25
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,10 @@ deep
145145

146146
The *deep* colormap is sequential from light yellow to potentially represent shallower water through pale green to increasingly dark blue and purple to represent increasing depth.
147147

148-
.. plot::
149-
:include-source:
150-
151-
import cmocean
152-
import matplotlib.pyplot as plt
148+
.. figure:: https://cloud.githubusercontent.com/assets/3487237/16900541/4af66c4c-4bf5-11e6-92a9-82eaa39cb18b.png
149+
:target: http://iuryt.github.io/tutorial/Como_fazer_um_mapa02.html
153150

154-
fig = plt.figure(figsize=(8, 3))
155-
ax = fig.add_subplot(1, 2, 1)
156-
cmocean.plots.test(cmocean.cm.deep, ax=ax)
157-
ax = fig.add_subplot(1, 2, 2)
158-
cmocean.plots.quick_plot(cmocean.cm.deep, ax=ax)
151+
Bathymetry plot, by `Iury Sousa <http://iuryt.github.io/>`_
159152

160153
dense
161154
^^^^^
@@ -172,8 +165,6 @@ algae
172165

173166
The *algae* colormap is sequential with whitish-green for low values and increasing in green with increasing value, which could be used to represent an increase in chlorophyll in the water. Two examples of this colormap are shown below, from Texas A&M University gliders. This colormap is based on matplotlib's Greens, but was recreated from scratch using the viscm tool.
174167

175-
.. image:: http://gcoos2.tamu.edu/gandalf_data/deployments/tamu/unit_540/plots/sci_flbbcd_chlor_units.png
176-
:target: http://gcoos2.tamu.edu/gandalf_data/deployments/tamu/unit_540/plots/sci_flbbcd_chlor_units.png
177168
.. image:: http://gcoos2.tamu.edu/gandalf_data/deployments/tamu/unit_541/plots/sci_flbbcd_chlor_units.png
178169
:target: http://gcoos2.tamu.edu/gandalf_data/deployments/tamu/unit_541/plots/sci_flbbcd_chlor_units.png
179170

@@ -217,17 +208,10 @@ amp
217208

218209
The *amp* colormap is sequential from whitish to dark red and could be used to represent an increase in wave height values. This colormap is the positive half of the *balance* colormap.
219210

220-
.. plot::
221-
:include-source:
222-
223-
import cmocean
224-
import matplotlib.pyplot as plt
211+
.. figure:: https://cloud.githubusercontent.com/assets/3487237/16920916/840d91d4-4cdd-11e6-8db5-f93cd61b78c2.png
212+
:target: http://soliton.vm.bytemark.co.uk/pub/cpt-city/
225213

226-
fig = plt.figure(figsize=(8, 3))
227-
ax = fig.add_subplot(1, 2, 1)
228-
cmocean.plots.test(cmocean.cm.amp, ax=ax)
229-
ax = fig.add_subplot(1, 2, 2)
230-
cmocean.plots.quick_plot(cmocean.cm.amp, ax=ax)
214+
Earthquake magnitude, by `Natalie Accardo <http://www.natalieaccardo.com/>`_ using GMT.
231215

232216
tempo
233217
^^^^^
@@ -344,7 +328,7 @@ Output a dictionary to define a colormap with:
344328
import cmocean
345329
346330
cmdict = cmocean.tools.get_dict(cmocean.cm.matter, N=9)
347-
print cmdict
331+
print(cmdict)
348332
349333
Make a colormap instance with ``cmap = cmocean.tools.cmap(rgbin, N=10)`` given the rgb input array.
350334

@@ -375,11 +359,11 @@ cmocean available elsewhere!
375359
* For `MATLAB <http://www.mathworks.com/matlabcentral/fileexchange/57773-cmocean-perceptually-uniform-colormaps>`_ by `Chad Greene <http://www.chadagreene.com/>`_
376360
* For R: `Oce <http://dankelley.github.io/oce/>`_ oceanographic analysis package by `Dan Kelley <http://www.dal.ca/faculty/science/oceanography/people/faculty/daniel-e-kelley.html>`_ and `Clark Richards <http://clarkrichards.org/>`_
377361
* For `Ocean Data Viewer <https://github.com/kthyng/cmocean-odv>`_
378-
* For `Generic Mapping Tools (GMT) <https://github.com/kthyng/cmocean-gmt>`_
362+
* For Generic Mapping Tools (GMT) at `cpt-city <http://soliton.vm.bytemark.co.uk/pub/cpt-city/cmocean/index.html>`_ and on `github <https://github.com/kthyng/cmocean-gmt>`_
379363
* For `Paraview <https://github.com/kthyng/cmocean-paraview>`_, inspired by `Phillip Wolfram <https://github.com/pwolfram>`_.
380364
* In `Plotly <https://plot.ly/python/cmocean-colorscales/>`_
381365
* Chad Greene's `Antartic Mapping Tools <http://www.mathworks.com/matlabcentral/fileexchange/47638-antarctic-mapping-tools>`_ in Matlab uses cmocean
382-
* In PyNcView: coming soon!
366+
.. * In PyNcView: coming soon!
383367
384368
Examples of beautiful visualizations:
385369
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)