Skip to content

Commit bfcc638

Browse files
committed
updated docs with new deep example and some typos
1 parent 7a1e6ea commit bfcc638

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

docs/source/index.rst

Lines changed: 5 additions & 12 deletions
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
^^^^^
@@ -344,7 +337,7 @@ Output a dictionary to define a colormap with:
344337
import cmocean
345338
346339
cmdict = cmocean.tools.get_dict(cmocean.cm.matter, N=9)
347-
print cmdict
340+
print(cmdict)
348341
349342
Make a colormap instance with ``cmap = cmocean.tools.cmap(rgbin, N=10)`` given the rgb input array.
350343

@@ -379,7 +372,7 @@ cmocean available elsewhere!
379372
* For `Paraview <https://github.com/kthyng/cmocean-paraview>`_, inspired by `Phillip Wolfram <https://github.com/pwolfram>`_.
380373
* In `Plotly <https://plot.ly/python/cmocean-colorscales/>`_
381374
* 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!
375+
.. * In PyNcView: coming soon!
383376
384377
Examples of beautiful visualizations:
385378
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)