Replies: 1 comment 1 reply
-
Hmm I am not sure if there is a way to control where the ticks are placed beyond the different scale types that you already referred to. This might be worth asking on the VegaLite issue tracker (maybe after checking out if their more elaborate scale documentation is helpful, eg quantile/quantizing scales?) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I've been getting deeper into Altair and I wasn't able to locate any examples or documentation about creating custom axes transformations and scales beyond the bundled ScaleTypes.
To be specific, I wrote a library called mpl-probscale that implements probability scales in (wait for it...) matplotlib.
Short version: probability scales take a quantile plot and convert the quantiles to probabilities (and back) based on the CDF/PPF of some user-specified probability distribution (typically normal or weibull in my field).
Here's an example comparing three different probability scales and a linear scale all with the same tick locations:
(here's a link to the docs page with this image, just scroll down a bit)
I'd love to be able to do something like this in Altair, but I'm getting a little lost in the internals. Can anyone point me in the right direction?
Beta Was this translation helpful? Give feedback.
All reactions