.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/misc/plot_misc_script.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 or to run this example in your browser via JupyterLite or Binder. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_misc_plot_misc_script.py: Misc Showcase ============= This gallery example demonstrates the :py:class:`~scikitplot.misc.` module. .. GENERATED FROM PYTHON SOURCE LINES 15-18 --------------------------------------------------------------------------- Imports --------------------------------------------------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 18-26 .. code-block:: Python from scikitplot.misc import ( closest_color_name, display_colors, plot_colortable, plot_overlapping_colors, ) .. GENERATED FROM PYTHON SOURCE LINES 27-30 .. code-block:: Python closest_color_name() .. rst-class:: sphx-glr-script-out .. code-block:: none ['black'] .. GENERATED FROM PYTHON SOURCE LINES 31-34 .. code-block:: Python display_colors(['red', 'blue'], show_indices=True) .. image-sg:: /auto_examples/misc/images/sphx_glr_plot_misc_script_001.png :alt: Color Display (Order) :srcset: /auto_examples/misc/images/sphx_glr_plot_misc_script_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 35-38 .. code-block:: Python fig = plot_colortable() .. image-sg:: /auto_examples/misc/images/sphx_glr_plot_misc_script_002.png :alt: plot misc script :srcset: /auto_examples/misc/images/sphx_glr_plot_misc_script_002.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 39-47 .. code-block:: Python # https://xkcd.com/color/rgb/ # https://xkcd.com/color/rgb.txt # https://www.w3schools.com/cssref/css_colors.php fig = plot_overlapping_colors() .. image-sg:: /auto_examples/misc/images/sphx_glr_plot_misc_script_003.png :alt: plot misc script :srcset: /auto_examples/misc/images/sphx_glr_plot_misc_script_003.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 48-54 .. tags:: plot-type: barh plot-type: text level: beginner purpose: showcase .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.689 seconds) .. _sphx_glr_download_auto_examples_misc_plot_misc_script.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/scikit-plots/scikit-plots/main?urlpath=lab/tree/notebooks/auto_examples/misc/plot_misc_script.ipynb :alt: Launch binder :width: 150 px .. container:: lite-badge .. image:: images/jupyterlite_badge_logo.svg :target: ../../lite/lab/index.html?path=auto_examples/misc/plot_misc_script.ipynb :alt: Launch JupyterLite :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_misc_script.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_misc_script.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_misc_script.zip ` .. include:: plot_misc_script.recommendations .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_