Search code examples
pythonbokeh

Symlog scale for Bokeh plots


I have great plots using matplotlib for which I use symlog for both xscale and yscale. I was wondering how to build a similar scale for Bokeh. For now, I can only find log scale in Bokeh but given I have negative values, it doesn't give a good result...

Has someone a solution ?


Solution

  • As of Bokeh 2.1.1 there is not a good answer. There is no "symlog" capability built in, and although Bokeh is general extensible through custom extensions, unfortunately scale mappers are the one part of Bokeh that are not easily extensible yet. I'd encourage you to make a feature request on the project issue tracker and if you have the time and ability we would certainly be all to happy to help you work on a PR for the feature as well.