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

Interface for common calculation of analysis attributes #199

Open
piever opened this issue May 31, 2021 · 2 comments
Open

Interface for common calculation of analysis attributes #199

piever opened this issue May 31, 2021 · 2 comments

Comments

@piever
Copy link
Collaborator

piever commented May 31, 2021

So far extrema for density plots and bins for histograms are computed globally (they are the same for all variables in all subplots).

We currently do not have an interface to decide whether they should be computed globally, per subplot (to allow different subplots to have different bins, while still having consistent bins per subplots to stack or dodge) or per trace.

A possible approach could be to completely outsource this to the user, and pass as bins (or any other attribute) a function that takes as input a Dict whose keys encode the "primary variables" that specify which trace it is and whose values are positional and named arguments for the analysis. This function would return another Dict with the bins information.

@knuesel
Copy link
Contributor

knuesel commented May 31, 2021

This sounds involved, why not density(extrema=:global) where :global could be replaced with :subplot or :trace?

@tbenst
Copy link

tbenst commented Aug 20, 2021

A possible approach could be to completely outsource this to the user

such an approach might also solve #266 -- namely "Interface for common access to analysis attributes"

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