Search code examples
plotbokeh

Using data line widths in bokeh


Is there a way to provide line width in bokeh in data space, or alternatively can the line width be fixed in a way that zooming does not alter it? I am trying to draw lines right next to one another without clashes or gaps between them. Currently, I am using a mapping from line width to coordinate width and change the line widths and line coords in sync to achieve this, but as soon as I zoom the line width is adapted.


Solution

  • Is there a way to provide line width in bokeh in data space

    No, but feature requests are welcome!

    can the line width be fixed in a way that zooming does not alter it?

    Line width is set in screen units - zooming does not alter it by default.

    It seems like the problem is that you change your line width in response to the range changes, and zooming does change ranges.