.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/colormap/03-plot_stratum_cmap.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_colormap_03-plot_stratum_cmap.py: stratum colormap ==================== 一个用于显示RGT的colormap (created by Xinming Wu) .. image:: ../../_static/cigvis/colormap/03.png :alt: image :align: center .. GENERATED FROM PYTHON SOURCE LINES 16-30 .. code-block:: default # sphinx_gallery_thumbnail_path = '_static/cigvis/colormap/03.png' import numpy as np import cigvis d = np.fromfile('../../data/rgt/ux.dat', np.float32).reshape(128, 128, 128) nodes, cbar = cigvis.create_slices(d, [[36], [28], [84]], cmap='stratum', return_cbar=True, label_str='stratum cmap for RGT') nodes.append(cbar) cigvis.plot3D(nodes, savename='example.png') .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_gallery_colormap_03-plot_stratum_cmap.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 03-plot_stratum_cmap.py <03-plot_stratum_cmap.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 03-plot_stratum_cmap.ipynb <03-plot_stratum_cmap.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_