-
Notifications
You must be signed in to change notification settings - Fork 36
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
Is it possible to define default plots for xarrays/ xarray dataarrays? #84
Comments
Yes, I believe you can do exactly what you would like. The set of parameters to put in the plotting block would be the same as whatever you pass to |
Thanks. I‘m just puzzled how I’d specify a certain data array and select a certain level (a dimension) from the dataset to be plotted? Basically, how to specify a set of xarray sel statements before plotting... |
@philippjfr would know which parameters to pass. |
I don't think you can currently select on a z-dimension (or any other dimensions), but we should definitely allow that so an issue would be appreciated. Currently you'll just get a widget to select along that dimensions.
To select a data variable you specify a |
Thanks @philippjfr . I’ll experiment a bit more. In my case I do have geographic soil data that also has a layer dimension and about 20 data variables. I want to plot one datavariable and the top layer to give users an impression what’s contained in the resource... C |
|
Hi @aaronspring Thanks for the reference. I currently have this working like in your example, but my original idea seems not possible. Originally, I wanted to plot a simple 2d plot without selectors... Consider this xarray dims: Cheers, |
No idea. I would also like to know this. This is the question of subselecting the data before plotting. |
you could try |
I'm not opposed to adding sel and isel options to hvplot at least when loading from a yaml spec but these options are definitely not exposed right now. |
See also holoviz/hvplot#505 (comment) and discussion around it |
Hi.
I'd like to specify one or two default visualizations for an intake_xarray set. However, I cannot find any info how to specify:
Is this possible?
Currently, I use this:
The text was updated successfully, but these errors were encountered: