I posted a question on stackoverflow about creating with making my own
shading effect (I want to use horizontal gradient for the shading).
http://stackoverflow.com/questions/30310002/issue-creating-map-shading-in-matplotlib-imshow-by-setting-opacity-to-data-gradi
Unfortunately I cannot share the
On 2015/05/21 5:50 AM, Matteo Niccoli wrote:
> I posted a question on stackoverflow about creating with making my own
> shading effect (I want to use horizontal gradient for the shading).
> http://stackoverflow.com/questions/30310002/issue-creating-map-shading-in-matplotlib-imshow-by-setting-opacit
OK, I understand.
Could you suggest a way to reduce that 3D array to a 2D array and plot it
with a specific colormap, while preserving the shading?
I did something similar in Matlab
https://mycarta.wordpress.com/2012/04/05/visualization-tips-for-geoscientists-matlab-part-ii/
But it took using
On 2015/05/21 11:28 AM, Matteo Niccoli wrote:
> OK, I understand.
>
>
> Could you suggest a way to reduce that 3D array to a 2D array and plot it
> with a specific colormap, while preserving the shading?
It looks like you will get what you want by following the titusjan's
advice in his reply. If
I think you're asking how to blend a custom intensity image with an rgb
image. (I'm traveling and just have my phone, so you'll have to excuse my
lack of examples.)
There are several ways to do this. Basically, it's analogous to "blend
modes" in Photoshop etc.
Have a look at the matplotlib.colors
Joe, Eric
Thanks to both for your further comments.
I made a new notebook, this time using open source data so it can be
downloaded and followed step by step.
The html version in nbviewer is here:
http://nbviewer.ipython.org/urls/dl.dropbox.com/s/2pfhla9rn66lsbv/surface_shading.ipynb/%3Fdl%3D0
Da
On 2015/05/22 9:33 AM, Matteo Niccoli wrote:
> The second method suggested by titusjan replaces value in hsv space with
> intensity as suggested. Eric you will notce I did include the line
> img_array = plt.get_cmap('cubehelix')(data_n) and yet the colormapping is
> not working.
I don't understan
On 2015/05/23 8:49 AM, Matteo Niccoli wrote:
> Hi Eric
>
> If you look at the two attached images, both have the shading as expected,
> but in one case the colours have changed, from the cubehelix colors, to
> rainbow colors.
Yes, the result looks more like a rainbow set, but that doesn't mean
an
> On May 23, 2015, at 12:07 PM, Eric Firing wrote:
>
> You might get something more to your liking if you were to start with a
> colormap in which V is uniform--all variation is in H and S--and then
> impose the shading on the V. Cubehelix starts with a full range of V,
> so replacing V wit
Nice idea
I will try
Sent from my iPhone
> On May 23, 2015, at 2:23 PM, Jody Klymak wrote:
>
>
>> On May 23, 2015, at 12:07 PM, Eric Firing wrote:
>>
>> You might get something more to your liking if you were to start with a
>> colormap in which V is uniform--all variation is in H and S--
10 matches
Mail list logo