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

How to set color for volshow() ? #231

Open
yucornetto opened this issue Feb 17, 2019 · 3 comments
Open

How to set color for volshow() ? #231

yucornetto opened this issue Feb 17, 2019 · 3 comments

Comments

@yucornetto
Copy link

It seems that there is no "color" parameter for volshow, how could I set the volume visualization color that I want? I tried to find it out in the API documents yet find nothing...

@kaedonkers
Copy link

Our team really like the look of ipyvolume and have been trying to render meteorological data with volshow, but like @yucornetto can't see a way to change the color (the default colouring makes clouds hard to visualise...). Any advice?
image

@maartenbreddels
Copy link
Collaborator

It is not well documented, but basically it's an rgb image you can play with, for instance:
image

Change the sliders and you see the rgba data change (if you reexecute the cell).
This means you can also write to the rgba property and it will be send to the frontend.

Also take a look at @GenevieveBuckley 's PR's:
https://github.com/maartenbreddels/ipyvolume/pull/186/files
https://github.com/maartenbreddels/ipyvolume/pull/178/files

@GenevieveBuckley
Copy link
Contributor

Thank you for reminding me, I dropped the ball on those two. Things got stalled by my confusion about how your python and javascript components are working together.

I think it's worth persevering with #178 in particular, so I'll try to find some time. @maartenbreddels if you can clarify the function of certain parts of ipyvolume, that would be very helpful for getting this kick-started again.

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

4 participants