Giter Club home page Giter Club logo

colormap's People

Contributors

jey avatar njsmith avatar stefanv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colormap's Issues

Don't tell people that we have put parula under CC0

SSIA. It strikes me as implausible that MATLAB owns the exclusive use of an array of numbers, and even more implausible that if an perceptually very similar colormap to parula were to live in this repository (so as to be made from non-identical RGB values) whether that would be covered by any claimed ownership over the 'original' parula.

What do the authors believe on this topic?
Is the parula.py file here a recreation of the parula colormap from MATLAB by independent means? (I can't check I don't have a MATLAB license)

recommendation for circular colormap?

I need to visualize data that fits the circular color space, much like the wind directions in this talk. (My use case is the complex argument, i.e., the angle, in a complex-valued function.) Right now, I'm using the hsv color map aka the Comic Sans of circular color map.

Now that matplotlib will have four awesome colormaps for linear space, is there a recommendation you can give for circular color maps as well?

Put on PyPI

Is there any particular reason this repo hasn't been put into PyPI? Would love to be able to import without copy/pasting the colormaps.py file into my repos. Happy to help build a setup.py if there is interest in posting it on PyPI.

Pack very large

Just tried cloning this repo and it took much longer then expected owing to a large pack size... i.e. 17Mb 99% stored in .git/objects/pack/pack-6b24ce3d7a0ffb8b614f9cdcc5e68dfd610187a9.pack, this seems crazy for just a few short text files and a handful of commits...

Gamut slice rendered incorrectly in editor

On a fresh install of WinPython-64bit-3.4.3.4 and viscm:

In the editor the gamut slice is rendered with blue and red in the correct place, but green and pink inverted (i.e. x & y interchanged). The spline and colourmap therefore do not correspond to the slice. The following is a replication of the example at the bottom of http://bids.github.io/colormap/.

error

Are viridis and related maps published as Python module?

Is there any pip installable source for these colormaps? Including colormaps.py from here, or extracting them from matplotlib seem suboptimal. It doesn't seem to be specified anywhere, but I gather that colormaps.py arrays are in sRGB1 (non-linear), is this correct?

Also, are the equations (code) used for creating the maps available anywhere?

Question for going from viridis color to scalar value

Apologies if this is the wrong place to ask, but since this seems to be the origin of viridis, it seemed a good place.

If I already have viridis-encoded data, what's an easy way to convert a given color to the scalar value that produced it? in other words, if viridis(x) gives (r,g,b), how would you write an inverse_viridis(r, g, b) that gives x (assuming the range of x is known to be [0,1]).

A brute-force method would be to find the closest rgb value in the _viridis_data list to your input rgb, and then do a linear interpolation between the two adjacent values in the data list to get the exact value of x. However, this seems quite slow, and given the structure of viridis it looks like there could be assumptions to make for a simpler algorithm that doesn't involve a brute force search?

Given that this is the new default for matplotlib, it's quite possible a lot of viridis-encoded data will end up out there in the wild with raw data being lost or inaccessible without reconstructing it, so this kind of function might be a good thing to have.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.