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

Skip to content

Commit 753a8e0

Browse files
committed
update to cmocean docs with new example
1 parent 3c12de6 commit 753a8e0

37 files changed

Lines changed: 45 additions & 62 deletions

cmocean/_images/index-10.png

-287 Bytes
Loading

cmocean/_images/index-5.png

1.11 KB
Loading

cmocean/_images/index-6.png

273 Bytes
Loading

cmocean/_images/index-7.png

-1.26 KB
Loading

cmocean/_images/index-8.png

19.7 KB
Loading

cmocean/_images/index-9.png

-16.1 KB
Loading

cmocean/_sources/index.txt

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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

cmocean/index-1.pdf

0 Bytes
Binary file not shown.

cmocean/index-10.hires.png

-177 Bytes
Loading

cmocean/index-10.pdf

-2.97 KB
Binary file not shown.

0 commit comments

Comments
 (0)