%global _empty_manifest_terminate_build 0 Name: python-colormap Version: 1.0.4 Release: 1 Summary: Utilities to ease manipulation of matplotlib colormaps and color codecs (e.g., hex2rgb) License: LGPL URL: http://github.com/cokelaer/colormap Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ac/1b/75c9152c1636064abcd5b2b0eb674dbc71cde985b2337cdc906e81f59b75/colormap-1.0.4.tar.gz BuildArch: noarch %description ############################# COLORMAP documentation ############################# Please see : http://colormap.readthedocs.io/ for an up-to-date documentation. .. image:: https://badge.fury.io/py/colormap.svg :target: https://pypi.python.org/pypi/colormap .. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml .. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master :target: https://coveralls.io/r/cokelaer/colormap?branch=master :version: Python 3.6, 3.7, 3.8, 3.9 :contributions: Please join https://github.com/cokelaer/colormap :issues: Please use https://github.com/cokelaer/colormap/issues :notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks What is it ? ################ **colormap** package provides simple utilities to convert colors between RGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All matplotlib colormaps and some R colormaps are available altogether. The plot_colormap method (see below) is handy to quickly pick up a colormaps and the test_colormap is useful to see test a new colormap. Installation ################### :: pip install colormap Example ########## * Create your own colormap from red to green colors with intermediate color as whitish (diverging map from red to green):: c = Colormap() mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]}) cmap = c.test_colormap(mycmap) * Even simpler if the colormap is linear:: c = Colormap() mycmap = c.cmap_linear('red', 'white', 'green(w3c)') cmap = c.test_colormap(mycmap) .. image:: http://colormap.readthedocs.io/en/latest/_images/index-1.png :width: 50% :align: center * check out the available colormaps:: c = Colormap() c.plot_colormap('diverging') .. image:: http://colormap.readthedocs.io/en/latest/_images/colormaps.png :width: 50% :align: center See online documentation for details: http://colormap.readthedocs.io/ %package -n python3-colormap Summary: Utilities to ease manipulation of matplotlib colormaps and color codecs (e.g., hex2rgb) Provides: python-colormap BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-colormap ############################# COLORMAP documentation ############################# Please see : http://colormap.readthedocs.io/ for an up-to-date documentation. .. image:: https://badge.fury.io/py/colormap.svg :target: https://pypi.python.org/pypi/colormap .. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml .. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master :target: https://coveralls.io/r/cokelaer/colormap?branch=master :version: Python 3.6, 3.7, 3.8, 3.9 :contributions: Please join https://github.com/cokelaer/colormap :issues: Please use https://github.com/cokelaer/colormap/issues :notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks What is it ? ################ **colormap** package provides simple utilities to convert colors between RGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All matplotlib colormaps and some R colormaps are available altogether. The plot_colormap method (see below) is handy to quickly pick up a colormaps and the test_colormap is useful to see test a new colormap. Installation ################### :: pip install colormap Example ########## * Create your own colormap from red to green colors with intermediate color as whitish (diverging map from red to green):: c = Colormap() mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]}) cmap = c.test_colormap(mycmap) * Even simpler if the colormap is linear:: c = Colormap() mycmap = c.cmap_linear('red', 'white', 'green(w3c)') cmap = c.test_colormap(mycmap) .. image:: http://colormap.readthedocs.io/en/latest/_images/index-1.png :width: 50% :align: center * check out the available colormaps:: c = Colormap() c.plot_colormap('diverging') .. image:: http://colormap.readthedocs.io/en/latest/_images/colormaps.png :width: 50% :align: center See online documentation for details: http://colormap.readthedocs.io/ %package help Summary: Development documents and examples for colormap Provides: python3-colormap-doc %description help ############################# COLORMAP documentation ############################# Please see : http://colormap.readthedocs.io/ for an up-to-date documentation. .. image:: https://badge.fury.io/py/colormap.svg :target: https://pypi.python.org/pypi/colormap .. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml .. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master :target: https://coveralls.io/r/cokelaer/colormap?branch=master :version: Python 3.6, 3.7, 3.8, 3.9 :contributions: Please join https://github.com/cokelaer/colormap :issues: Please use https://github.com/cokelaer/colormap/issues :notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks What is it ? ################ **colormap** package provides simple utilities to convert colors between RGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All matplotlib colormaps and some R colormaps are available altogether. The plot_colormap method (see below) is handy to quickly pick up a colormaps and the test_colormap is useful to see test a new colormap. Installation ################### :: pip install colormap Example ########## * Create your own colormap from red to green colors with intermediate color as whitish (diverging map from red to green):: c = Colormap() mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]}) cmap = c.test_colormap(mycmap) * Even simpler if the colormap is linear:: c = Colormap() mycmap = c.cmap_linear('red', 'white', 'green(w3c)') cmap = c.test_colormap(mycmap) .. image:: http://colormap.readthedocs.io/en/latest/_images/index-1.png :width: 50% :align: center * check out the available colormaps:: c = Colormap() c.plot_colormap('diverging') .. image:: http://colormap.readthedocs.io/en/latest/_images/colormaps.png :width: 50% :align: center See online documentation for details: http://colormap.readthedocs.io/ %prep %autosetup -n colormap-1.0.4 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-colormap -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 1.0.4-1 - Package Spec generated