[julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Patrick Kofod Mogensen
Is it possible to create a colormap as described in the title using 
Colors.jl? I couldn't seem to find anything on Colormaps and 
transparency/opacity.

Best,
Patrick


Re: [julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Tom Breloff
Peter: your package looks interesting... I may add the ability to pass your
colormap objects directly into Plots functions. I'll open an issue when I
have a chance and cc you.

On Friday, February 12, 2016, Tom Breloff  wrote:

> Patrick I have solutions for custom colormaps with alpha in Plots... Maybe
> this thread is good motivation to dedicate a page in the documentation. The
> gist is that you can pass in a ColorGradient, which you can construct with
> predefined gradient names, custom color vectors, and custom interpolation
> points. Do a search for ColorGradient in the Plots issues and you should
> find some examples.
>
> On Friday, February 12, 2016, Peter Kovesi  > wrote:
>
>> I have recently added a package for generating a variety of perceptually
>> uniform colour maps which may be of interest to you
>> https://github.com/peterkovesi/PerceptualColourMaps.jl
>> However I do not consider transparency
>>
>> Cheers
>> Peter
>>
>> On Friday, February 12, 2016 at 5:48:06 PM UTC+8, Patrick Kofod Mogensen
>> wrote:
>>>
>>> Is it possible to create a colormap as described in the title using
>>> Colors.jl? I couldn't seem to find anything on Colormaps and
>>> transparency/opacity.
>>>
>>> Best,
>>> Patrick
>>>
>>


Re: [julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Tom Breloff
Patrick I have solutions for custom colormaps with alpha in Plots... Maybe
this thread is good motivation to dedicate a page in the documentation. The
gist is that you can pass in a ColorGradient, which you can construct with
predefined gradient names, custom color vectors, and custom interpolation
points. Do a search for ColorGradient in the Plots issues and you should
find some examples.

On Friday, February 12, 2016, Peter Kovesi  wrote:

> I have recently added a package for generating a variety of perceptually
> uniform colour maps which may be of interest to you
> https://github.com/peterkovesi/PerceptualColourMaps.jl
> However I do not consider transparency
>
> Cheers
> Peter
>
> On Friday, February 12, 2016 at 5:48:06 PM UTC+8, Patrick Kofod Mogensen
> wrote:
>>
>> Is it possible to create a colormap as described in the title using
>> Colors.jl? I couldn't seem to find anything on Colormaps and
>> transparency/opacity.
>>
>> Best,
>> Patrick
>>
>


Re: [julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Tom Breloff
For reference, I just added an example of color gradients with alpha here:
https://github.com/tbreloff/Plots.jl/issues/138#issuecomment-183374401

On Fri, Feb 12, 2016 at 9:18 AM, Tom Breloff  wrote:

> Peter: your package looks interesting... I may add the ability to pass
> your colormap objects directly into Plots functions. I'll open an issue
> when I have a chance and cc you.
>
>
> On Friday, February 12, 2016, Tom Breloff  wrote:
>
>> Patrick I have solutions for custom colormaps with alpha in Plots...
>> Maybe this thread is good motivation to dedicate a page in the
>> documentation. The gist is that you can pass in a ColorGradient, which you
>> can construct with predefined gradient names, custom color vectors, and
>> custom interpolation points. Do a search for ColorGradient in the Plots
>> issues and you should find some examples.
>>
>> On Friday, February 12, 2016, Peter Kovesi 
>> wrote:
>>
>>> I have recently added a package for generating a variety of perceptually
>>> uniform colour maps which may be of interest to you
>>> https://github.com/peterkovesi/PerceptualColourMaps.jl
>>> However I do not consider transparency
>>>
>>> Cheers
>>> Peter
>>>
>>> On Friday, February 12, 2016 at 5:48:06 PM UTC+8, Patrick Kofod Mogensen
>>> wrote:

 Is it possible to create a colormap as described in the title using
 Colors.jl? I couldn't seem to find anything on Colormaps and
 transparency/opacity.

 Best,
 Patrick

>>>