Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs v2: colormap helper API #101

Open
manzt opened this issue Feb 21, 2023 · 1 comment
Open

docs v2: colormap helper API #101

manzt opened this issue Feb 21, 2023 · 1 comment

Comments

@manzt
Copy link
Member

manzt commented Feb 21, 2023

from the prior docs:

Color Maps
-----------

Certain quantative tracks such as the heatmap can vary their colormap. Color maps can be passed in directly as arrays of color values:

.. code-block:: python
    Track('heatmap', tileset, colorRange=['white', 'black'])

Or created from a matplotlib colormap (reversed=True reverses the color order in the heatmap):

.. code-block:: python

    from higlass.utils import hg_cmap
    Track('heatmap', tileset, colorRange=hg_cmap('jet', reverse=True))


A list of available matplotlib color maps can be found [in the matplotlib docs](https://matplotlib.org/3.1.1/gallery/color/colormap_reference.html).
@manzt
Copy link
Member Author

manzt commented Feb 21, 2023

We don't currently have the hg_cmap utility. Should we add it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant