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

Customize colors of 2D plots in H5Web cell #82

Open
axelboc opened this issue Feb 17, 2022 · 5 comments
Open

Customize colors of 2D plots in H5Web cell #82

axelboc opened this issue Feb 17, 2022 · 5 comments
Assignees

Comments

@axelboc
Copy link
Contributor

axelboc commented Feb 17, 2022

H5Web allows customizing the colors in 2D plots, which is done in the css. It would be great to have a way to be able to inject this to invoking these widgets in Jupyter lab.

Originally posted by @tomio13 in #34 (comment)

@axelboc
Copy link
Contributor Author

axelboc commented Feb 17, 2022

Hi @tomio13, could you please tell us more about what you're doing with H5Web? How you're using it (in a cell or in a tab), with what kind of data, etc.

@tomio13
Copy link

tomio13 commented Feb 17, 2022

Thank you for the fast response.
In one case we are using it within a jupyter lab notebook to visualize NEXUS data output files with several curves to be plotted together. The specific example I used was an ellipsometry curve containing 3 Psi and 3 Delta curves each at a different incident angles.

@axelboc
Copy link
Contributor Author

axelboc commented Feb 17, 2022

Okay, thanks, and so I take it from your issue in the H5Web repo silx-kit/h5web#970 that you'd like the curves to be more easily identifiable and distinguishable from one another? Is this just a matter of changing the extension's default auxiliary curve colours so they're not all the same, or do you need actual control over the colours every time your run the H5Web widget?

@tomio13
Copy link

tomio13 commented Feb 17, 2022

Yes. As I see, the story has two aspects: on the one hand just changing the style such that a series of colors would be used is a good starting point. On the other hand, giving the possibility to set this by the user e.g. through setting an optional class, would be a really nice solution.

@loichuder
Copy link
Member

May be linked to silx-kit/h5web#1209

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

3 participants