<commit_before>cubehelix
=========

A full implementation of Dave Green's `cubehelix <http://adsabs.harvard.edu/abs/2011arXiv1108.5083G>`_ colormap for Python.

The user can adjust all parameters of the cubehelix algorithm. 
This enables much greater flexibility in choosing color maps, while (by default) ensuring the color map scales in brightness from black to white.

A few simple example flavors of cubehelix:

- Default color map settings produce the standard "cubehelix": ``cubehelix.cmap()``
- Create color map in only blues: ``cubehelix.cmap(rot=0, start=0)``
- Create reverse (white to black) backwards through the rainbow once: ``cubehelix.cmap(rot=1, reverse=True)``
- Similar to Matteo Niccoli’s perceptual rainbow: ``cubehelix.cmap(startHue=240,endHue=-300,minSat=1,maxSat=2.5,minLight=.3,maxLight=.8,gamma=.9)``

Discussion and examples shown on my blog: `If We Assume <http://www.ifweassume.com/2014/04/cubehelix-colormap-for-python.html>`_

Basic Usage
-----

>>> import cubehelix
>>> cx = cubehelix.cmap(start=0., rot=-0.5)
>>> plot(x,cmap=cx)


Installation
------------

Download:

- Place cubehelix.py in your Python path.

From source::

   setup.py install

or with pip::<commit_msg>add images<commit_after>cubehelix
=========

A full implementation of Dave Green's `cubehelix <http://adsabs.harvard.edu/abs/2011arXiv1108.5083G>`_ colormap for Python.

The user can adjust all parameters of the cubehelix algorithm. 
This enables much greater flexibility in choosing color maps, while (by default) ensuring the color map scales in brightness from black to white.

A few simple example flavors of cubehelix:

- Default color map settings produce the standard "cubehelix": ``cubehelix.cmap()`` 
![(Reversed) Standard cubehelix scheme](http://i.imgur.com/d0VwfK9.png)
- Create color map in only blues: ``cubehelix.cmap(rot=0, start=0)``
- Create reverse (white to black) backwards through the rainbow once: ``cubehelix.cmap(rot=1, reverse=True)`` 
![A nice blue cubehelix scheme](http://i.imgur.com/Kub0kgA.png)

- Similar to <NAME>li’s perceptual rainbow: ``cubehelix.cmap(startHue=240,endHue=-300,minSat=1,maxSat=2.5,minLight=.3,maxLight=.8,gamma=.9)``

Discussion and examples shown on my blog: `If We Assume <http://www.ifweassume.com/2014/04/cubehelix-colormap-for-python.html>`_

Basic Usage
-----

>>> import cubehelix
>>> cx = cubehelix.cmap(start=0., rot=-0.5)
>>> plot(x,cmap=cx)


Installation
------------

Download:

- Place cubehelix.py in your Python path.

From source::

   setup.py install

or with pip::
{'fraction_non_alphanumeric': 0.13926042486231313, 'fraction_numerical': 0.029504327301337528, 'mean_word_length': 4.714606741573034, 'pattern_counts': {'":': 2, '<': 8, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4276398', 'n_tokens_mistral': 931, 'n_tokens_neox': 843, 'n_words': 252}