| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
|
meeseeksdev please backport to master |
Sorry, something went wrong.
…de (tick_labels).
…6-on-master Backport PR #1526 on branch master (feature: custom axis labeling from kernel side (tick_labels).)
| Back | FazBrowse Home | New Git URL |
This allows any custom labeling from the kernel side, and code reuse of labeling code for bqplot and matplotlib.
While I think it's always good to have more scales, there is always a use case of not being able to let the scales+axis do what you want.
Using tick_values was already useful, but in combination with the new tick_labels (dict that maps values to labels) users have ultimate freedom to position and format the ticks on that axis.
Listening to min and max on the scales, we can update the ticks when we pan (no code example for that yet).
e.g.:
We can use that for matplotlib (code by @astrofrog ):
And also use that in bqplot (yes, react-ipywidget code 😛 )
Giving:

See also the notebook example, where I added roman numbering: