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

Support xLabel, yLabel options for density #61

Open
mhtess opened this issue Sep 29, 2016 · 2 comments
Open

Support xLabel, yLabel options for density #61

mhtess opened this issue Sep 29, 2016 · 2 comments

Comments

@mhtess
Copy link

mhtess commented Sep 29, 2016

Seems to be supported for viz.hist but not viz.density

@longouyang
Copy link
Member

I'll add this to my todo list, but it's not high priority.

In general, if you pass in a distribution rather than an array of samples, you can set the labels by changing the keys of the objects:

viz.density(
  MH(function() { return {foo: uniform({a: 0, b: 1}) } }, 60)
)

Btw, in the big overhaul I'm planning, you won't even be able to pass in array of samples - it'll have to be either a data frame or a distribution. This will hopefully solve a lot of the awkwardness around axis label tweaks, tick label rotations, type hints, etc.

@mhtess
Copy link
Author

mhtess commented Sep 29, 2016

That makes sense. I've advised the probmods students accordingly

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

2 participants