Comments (4)
Actually, after thinking about this a bit more, there are two separate parts to what I'm asking for...
-
The first is simply the ability to invert a
linspace
. That is, given a simple continuous scale, find the value in the domain at which the scale's range equals my value. That is what I did in the javascript above, and it is a completely independent question from this package. I should perhaps bring this question somewhere else. -
The second request is to be able to find out that same thing (which value in the domain produces my range value, or color) but for a not-obviously-continuous value -- one that can't be represented by a
linspace
. This second class of problem is the problem space that this package works in: it provides a way to describe all colors used in an image on a single continuous scale. So for my initial use case (reading the values off an a heatmap image), this package seems like the correct place. :)
But if there already exists the ability to invert a linspace as I described in 1, above, then maybe we could implement the behavior I described in 2 as another method of that function. This would mirror the way this package provides another method for get
.
Thanks! :)
from colorschemes.jl.
Hi! If you want to add your code to this package (via a PR if you like), Iโd be delighted to help/assist in any way. This package could do with some more skilled contributors, I donโt understand what the code does myself sometimes ... :)
from colorschemes.jl.
:) Hi @cormullion! :) Thanks, I've opened a PR.
Yeah, I'm looking forward to working together! I'm not sure if this is better discussed over there in the PR or here, but hopefully the README.ipynb demonstrates a bit about what I had in mind! :)
And haha okay sure. I'm not sure if I'll be a great long-term maintainer; I don't spend too much time working in this space either, mostly i was just playing. But yeah I'm happy to help out if needed!
from colorschemes.jl.
Looks pretty good to me. The package will need an overhaul in a few months when everything breaks on the road to v0.7/v1.0, so I think we should merge this and see how it works/what needs revising.
from colorschemes.jl.
Related Issues (20)
- OutOfMemoryError() HOT 1
- Release 3.20.0 HOT 1
- Release 3.21.0 HOT 1
- Release v3.22.0 HOT 1
- Kindlmann colormap HOT 4
- Release 3.23.0 HOT 1
- Scientific colour maps v8.0 HOT 6
- PNW colors HOT 6
- Release 3.24.0 HOT 1
- That `*` can be used to concatenate should be documented
- How to control the center color of diverging colorschemes HOT 2
- Colorpalette from image: nice to have HOT 2
- Release 3.17.0 HOT 5
- Release 3.17.1 HOT 1
- Request: new rangescale option for symmetric colorschemes HOT 2
- RdBu and BrBg from matplotlib? HOT 2
- optimized get(colorscheme, data) function HOT 1
- Release 3.18.0 HOT 3
- Release 3.19.0 HOT 1
- `firstindex` method error in color scheme HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colorschemes.jl.